Commit 4203c3a3 authored by rswindell's avatar rswindell
Browse files

Using time(NULL) instead of clock() for random number seed.

parent fe0fb4c2
......@@ -4370,7 +4370,7 @@ void DLLCALL ftp_server(void* arg)
lprintf("Compiled %s %s with %s", __DATE__, __TIME__, compiler);
srand(clock()); /* Seed random number generator */
srand(time(NULL)); /* Seed random number generator */
sbbs_random(10); /* Throw away first number */
if(!winsock_startup()) {
......
......@@ -986,7 +986,7 @@ void event_thread(void* arg)
sbbs->event_thread_running = true;
srand(clock()); /* Seed random number generator */
srand(time(NULL)); /* Seed random number generator */
sbbs_random(10); /* Throw away first number */
thread_up();
......@@ -2629,7 +2629,7 @@ void node_thread(void* arg)
lprintf("Node %d thread started",sbbs->cfg.node_num);
#endif
srand(clock()); /* Seed random number generator */
srand(time(NULL)); /* Seed random number generator */
sbbs_random(10); /* Throw away first number */
#ifdef JAVASCRIPT
......
......@@ -1053,7 +1053,7 @@ void DLLCALL services_thread(void* arg)
lprintf("Compiled %s %s with %s", __DATE__, __TIME__, compiler);
srand(clock()); /* Seed random number generator */
srand(time(NULL)); /* Seed random number generator */
sbbs_random(10); /* Throw away first number */
if(!winsock_startup()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment