From 3d2a711a11dbfda8909cdba3ea02a6760e9108d9 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Fri, 12 Dec 2003 03:00:39 +0000 Subject: we can skip arc4random() call here. markus --- lib/libc/net/res_random.c | 4 ++-- 1 file 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 @@ -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) -- cgit v1.2.3