summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-12 03:00:39 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-12-12 03:00:39 +0000
commit3d2a711a11dbfda8909cdba3ea02a6760e9108d9 (patch)
tree82585c7c8775b3599a2762c3d5aebb63eb17bc81 /lib/libc
parent636624d4f0b28de0f687754939f946fea8fe07e6 (diff)
we can skip arc4random() call here. markus
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/res_random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/res_random.c b/lib/libc/net/res_random.c
index 82d81e038a1..9aa6d0a8d57 100644
--- a/lib/libc/net/res_random.c
+++ b/lib/libc/net/res_random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_random.c,v 1.13 2003/12/10 07:21:01 itojun Exp $ */
+/* $OpenBSD: res_random.c,v 1.14 2003/12/12 03:00:38 itojun Exp $ */
/*
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -186,10 +186,10 @@ res_randomid()
if (ru_counter >= RU_MAX || tv.tv_sec > ru_reseed)
res_initid();
+#if 0
if (!tmp)
tmp = arc4random();
-#if 0
/* Skip a random number of ids */
n = tmp & 0x7; tmp = tmp >> 3;
if (ru_counter + n >= RU_MAX)