summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-15 05:10:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-15 05:10:59 +0000
commit59f087023f8c520661aae86e3148adfaf89f6cff (patch)
tree08eb06b4fb4e8e3b50692cdbdbb5d2896fb95f5f /lib/libc/stdlib
parent3486a73fdbb357659559940cda9d6df244d64a9e (diff)
oops, typo. James Hartley is fast at trying -current
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/random.c b/lib/libc/stdlib/random.c
index 0c388983be2..737d4d27b60 100644
--- a/lib/libc/stdlib/random.c
+++ b/lib/libc/stdlib/random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: random.c,v 1.21 2014/06/15 01:49:06 deraadt Exp $ */
+/* $OpenBSD: random.c,v 1.22 2014/06/15 05:10:58 deraadt Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved.
@@ -259,7 +259,7 @@ srandomdev(void)
else
len = rand_deg * sizeof(state[0]);
- arc4random_buf(buf, len);
+ arc4random_buf(state, len);
if (rand_type != TYPE_0) {
fptr = &state[rand_sep];