[Spice-devel] [PATCH 3/4] server: remove srand(time(NULL))

Frediano Ziglio fziglio at redhat.com
Fri Aug 28 02:25:51 PDT 2015


From: Marc-André Lureau <marcandre.lureau at gmail.com>

This is clearly not a library responsability.
---
 server/red_worker.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 1069055..c83f13e 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -12163,8 +12163,6 @@ static void red_init(RedWorker *worker, WorkerInitData *init_data)
     if (!spice_timer_queue_create()) {
         spice_error("failed to create timer queue");
     }
-    srand(time(NULL));
-
     message = RED_WORKER_MESSAGE_READY;
     write_message(worker->channel, &message);
 
-- 
2.4.3



More information about the Spice-devel mailing list