diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1997-04-25 07:43:06 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1997-04-25 07:43:06 +0000 |
commit | 670b144ca3988b74791126fca2d98389f20db256 (patch) | |
tree | 3dcd9998f92e80ac19e8d2c5cf320ec5ce3d9155 /lib/libc | |
parent | b7983e6188938fbbd3e8279bcb5dcb51c68e17e7 (diff) |
skipped too many ids
Diffstat (limited to 'lib/libc')
-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 2fead78e9c0..ebd1831e51b 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.4 1997/04/23 22:37:50 provos Exp $ */ +/* $OpenBSD: res_random.c,v 1.5 1997/04/25 07:43:05 provos Exp $ */ /* * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> @@ -189,7 +189,7 @@ res_randomid() tmp = arc4random(); /* Skip a random number of ids */ - n = tmp & 0x2f; tmp = tmp >> 6; + n = tmp & 0x7; tmp = tmp >> 3; if (ru_counter + n >= RU_MAX) res_initid(); |