medfall

A super great game engine
Log | Files | Refs

commit 6d93dafcdb5b171dcb9f05bd6adae1d6dfccfce4
parent 9896b5052d524f37f094918fceaeb8947327862e
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat, 26 May 2018 18:37:06 +0300

ggentropy Windows fix

Diffstat:
ggentropy.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ggentropy.cc b/ggentropy.cc @@ -30,7 +30,7 @@ bool ggentropy( void * buf, size_t n ) { if( CryptAcquireContext( &provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT ) == 0 ) return false; - int ok = CryptGenRandom( provider, n, buf ); + int ok = CryptGenRandom( provider, n, ( BYTE * ) buf ); CryptReleaseContext( provider, 0 ); return ok != 0;