From 5641fa00e415b8c7a77d3433528770f47b6bd065 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sun, 19 Nov 2006 00:41:42 +0000 Subject: [PATCH] use srand() --- src/iodined.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iodined.c b/src/iodined.c index 70ad089..ce9b5c7 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -290,6 +291,7 @@ main(int argc, char **argv) outpacket.len = 0; q.id = 0; memset(password, 0, 33); + srand(time(NULL)); while ((choice = getopt(argc, argv, "vfhu:t:d:m:l:p:P:")) != -1) { switch(choice) {