trafgen: use urandom for seed
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 29 Jan 2013 15:51:38 +0000 (29 16:51 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Tue, 29 Jan 2013 15:51:38 +0000 (29 16:51 +0100)
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen.c

index b18201c..12c2ab4 100644 (file)
--- a/trafgen.c
+++ b/trafgen.c
@@ -998,7 +998,7 @@ static unsigned int generate_srand_seed(void)
        int fd;
        unsigned int seed;
 
-       fd = open("/dev/random", O_RDONLY);
+       fd = open("/dev/urandom", O_RDONLY);
        if (fd < 0)
                return time(0);