From b90ef35f1a9a5b3b5ced336d945ca35c235f2494 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Sat, 22 Nov 2014 16:18:35 +0100 Subject: win32 fix from NewEraCracker --- execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'execute.c') diff --git a/execute.c b/execute.c index ee8447e..d2034f6 100644 --- a/execute.c +++ b/execute.c @@ -1386,7 +1386,7 @@ static void suhosin_gen_entropy(php_uint32 *entropybuf TSRMLS_DC) } #else /* we have to live with the possibility that this call fails */ - php_win32_get_random_bytes(rbuf, 8 * sizeof(php_uint32)); + php_win32_get_random_bytes((unsigned char*)&seedbuf[6], 8 * sizeof(php_uint32)); #endif suhosin_SHA256Init(&context); -- cgit v1.3