[netperf-dev] netperf2 commit notice r369 - trunk/src
raj at netperf.org
raj at netperf.org
Mon Nov 29 17:01:49 PST 2010
Author: raj
Date: 2010-11-29 17:01:49 -0800 (Mon, 29 Nov 2010)
New Revision: 369
Modified:
trunk/src/netlib.c
Log:
best to initialize the random number generator one is using
Modified: trunk/src/netlib.c
===================================================================
--- trunk/src/netlib.c 2010-11-30 00:45:04 UTC (rev 368)
+++ trunk/src/netlib.c 2010-11-30 01:01:49 UTC (rev 369)
@@ -1349,6 +1349,10 @@
fflush(where);
}
+ /* some functionality might want to use random numbers, so we should
+ initialize the random number generator */
+ srand48(getpid());
+
}
/* this routine will conver the string into an unsigned integer. it */
More information about the netperf-dev
mailing list