mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
Fixed a compiler warning
This commit is contained in:
parent
cde759600b
commit
9cad594085
@ -329,9 +329,8 @@ PHPAPI char *php_session_create_id(PS_CREATE_SID_ARGS) /* {{{ */
|
||||
efree(buf);
|
||||
|
||||
if (PS(entropy_length) > 0) {
|
||||
unsigned char rbuf[2048];
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
unsigned char rbuf[2048];
|
||||
size_t toread = PS(entropy_length);
|
||||
|
||||
if (php_win32_get_random_bytes(rbuf, (size_t) toread) == SUCCESS){
|
||||
|
Loading…
Reference in New Issue
Block a user