php session id entropy source in windows..

From: Date: Tue, 04 Dec 2001 19:30:58 +0000
Subject: php session id entropy source in windows..
Groups: php.dev php.windows 
Request: Send a blank email to php-dev+get-72490@lists.php.net to get a copy of this message
I think that it is a good idea to implement a good entropy source from something like <wincrypt.h>. I belive that it goes something like this (by looking briefly at the platform SDK help). HCRYPTPROV hCryptProv; BYTE pbData[8]; CryptAcquireContext( &hCryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT); CryptGenRandom(hCryptProv, sizeof(pbData), pbData);

« previous php.dev (#72490) next »