diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-12-12 03:00:39 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-12-12 03:00:39 +0000 |
commit | 3d2a711a11dbfda8909cdba3ea02a6760e9108d9 (patch) | |
tree | 82585c7c8775b3599a2762c3d5aebb63eb17bc81 | |
parent | 636624d4f0b28de0f687754939f946fea8fe07e6 (diff) |
we can skip arc4random() call here. markus
-rw-r--r-- | lib/libc/net/res_random.c | 4 |
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) |