diff options
| author | itojun <itojun@NetBSD.org> | 2003-09-06 12:52:10 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2003-09-06 12:52:10 +0000 |
| commit | 013cd625a422b2fc1f06f01abec3dcf4614336f9 (patch) | |
| tree | c74d4a2e39fce0d461bcdfae76a5e0d14dd23213 /libexec/identd | |
| parent | e2c411ce3c541e10f05006e9db5bde986a892b5d (diff) | |
use arc4random
Diffstat (limited to 'libexec/identd')
| -rw-r--r-- | libexec/identd/parse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/identd/parse.c b/libexec/identd/parse.c index 9bfba0c1790..5639c4fda5a 100644 --- a/libexec/identd/parse.c +++ b/libexec/identd/parse.c @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.14 2003/05/17 21:17:43 itojun Exp $ */ +/* $NetBSD: parse.c,v 1.15 2003/09/06 12:52:10 itojun Exp $ */ /* ** parse.c This file contains the protocol parser @@ -532,9 +532,8 @@ int parse(fp, laddr, faddr) #ifdef SLEEP_BETWEEN_RETRIES { /* Seed the generator: lport should be unique (among other concurrent identd's) */ - if (try < 1) srandom(lport); /* This gives a max sleep of 0xffff = 65535 microsecs, about 32millisec average */ - usleep(random()&0x00ffff); + usleep(arc4random()&0x00ffff); } #else ; |
