diff options
| author | deraadt <> | 2014-06-15 05:10:58 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-15 05:10:58 +0000 |
| commit | ce091e871c74c0733db0cfb2d607b7a4b6608bfd (patch) | |
| tree | d69b21edfdb70f227968a51c04a990c1c0c123e9 /src/lib/libc/stdlib/random.c | |
| parent | c3721d590f041342f9a39d4c02e4ad97c7de45a4 (diff) | |
| download | openbsd-ce091e871c74c0733db0cfb2d607b7a4b6608bfd.tar.gz openbsd-ce091e871c74c0733db0cfb2d607b7a4b6608bfd.tar.bz2 openbsd-ce091e871c74c0733db0cfb2d607b7a4b6608bfd.zip | |
oops, typo. James Hartley is fast at trying -current
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
| -rw-r--r-- | src/lib/libc/stdlib/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/random.c b/src/lib/libc/stdlib/random.c index 0c388983be..737d4d27b6 100644 --- a/src/lib/libc/stdlib/random.c +++ b/src/lib/libc/stdlib/random.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: random.c,v 1.21 2014/06/15 01:49:06 deraadt Exp $ */ | 1 | /* $OpenBSD: random.c,v 1.22 2014/06/15 05:10:58 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 1983 Regents of the University of California. | 3 | * Copyright (c) 1983 Regents of the University of California. |
| 4 | * All rights reserved. | 4 | * All rights reserved. |
| @@ -259,7 +259,7 @@ srandomdev(void) | |||
| 259 | else | 259 | else |
| 260 | len = rand_deg * sizeof(state[0]); | 260 | len = rand_deg * sizeof(state[0]); |
| 261 | 261 | ||
| 262 | arc4random_buf(buf, len); | 262 | arc4random_buf(state, len); |
| 263 | 263 | ||
| 264 | if (rand_type != TYPE_0) { | 264 | if (rand_type != TYPE_0) { |
| 265 | fptr = &state[rand_sep]; | 265 | fptr = &state[rand_sep]; |
