[Spread-cvs] commit: r625 - branches/spread_4_2_debug/daemon

jschultz at spread.org jschultz at spread.org
Mon Nov 18 14:07:13 EST 2013


Author: jschultz
Date: 2013-11-18 14:07:13 -0500 (Mon, 18 Nov 2013)
New Revision: 625

Modified:
   branches/spread_4_2_debug/daemon/spread.c
Log:
Compile fix + change of srand seeding


Modified: branches/spread_4_2_debug/daemon/spread.c
===================================================================
--- branches/spread_4_2_debug/daemon/spread.c	2013-11-18 17:22:16 UTC (rev 624)
+++ branches/spread_4_2_debug/daemon/spread.c	2013-11-18 19:07:13 UTC (rev 625)
@@ -41,6 +41,7 @@
 #include "spu_events.h"
 #include "status.h"
 #include "log.h"
+#include "sess_body.h"
 #include "spu_alarm.h"
 
 #include "stdutil/stdutil.h"
@@ -163,7 +164,7 @@
 	{
 	  sp_time t = E_get_time();
 
-	  set_rand( (int) (t.sec + t.usec) ^ (int) stdhcode_oaat( &My.id, sizeof(My.id) ) );
+	  set_rand( (int) stdhcode_oaat( &t, sizeof( t ) ) ^ (int) stdhcode_oaat( &My.id, sizeof( My.id ) ) );
 	}
 
 #ifndef	ARCH_PC_WIN95




More information about the Spread-cvs mailing list