[quake3-commits] r1564 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun May 31 16:31:56 EDT 2009


Author: thilo
Date: 2009-05-31 16:31:56 -0400 (Sun, 31 May 2009)
New Revision: 1564

Modified:
   trunk/code/qcommon/common.c
Log:
Fix warning in Sys_RandomBytes() usage


Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2009-05-31 20:30:37 UTC (rev 1563)
+++ trunk/code/qcommon/common.c	2009-05-31 20:31:56 UTC (rev 1564)
@@ -2509,7 +2509,7 @@
 {
 	unsigned int seed;
 
-	if(Sys_RandomBytes(&seed, sizeof(seed)))
+	if(Sys_RandomBytes((byte *) &seed, sizeof(seed)))
 		srand(seed);
 	else
 		srand(time(NULL));



More information about the quake3-commits mailing list