[monit-dev] [monit] r333 committed - use srandom instead of srand (obsolete)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[monit-dev] [monit] r333 committed - use srandom instead of srand (obsolete)

monit-2
Revision: 333
Author: [hidden email]
Date: Mon Feb 28 12:12:17 2011
Log: use srandom instead of srand (obsolete)
http://code.google.com/p/monit/source/detail?r=333

Modified:
  /trunk/monitor.c

=======================================
--- /trunk/monitor.c Mon Feb 28 08:00:47 2011
+++ /trunk/monitor.c Mon Feb 28 12:12:17 2011
@@ -230,7 +230,7 @@
    /*
     * Initialize the random number generator
     */
-  srand(time(NULL) + getpid());
+  srandom(time(NULL) + getpid());

    /*
     * Initialize the Runtime mutex. This mutex

_______________________________________________
monit-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/monit-dev