summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-06-09 07:07:18 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-06-09 07:07:18 +0000
commitdbc8994d667f55793aa0ca89944b34e9b027ccad (patch)
tree9190acdfd8ec27a88a4b4e9caa9cf6963eb7b419 /sys/kern/init_main.c
parent4c1ad4a6cb68b98b13b7a966950ddb4ed17ce8a0 (diff)
rename arc4random_bytes => arc4random_buf to match libc's nicer name;
ok deraadt@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index fd0409870d0..d50617150d1 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.149 2008/05/06 17:19:40 thib Exp $ */
+/* $OpenBSD: init_main.c,v 1.150 2008/06/09 07:07:16 djm Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -396,7 +396,7 @@ main(void *framep)
{
volatile long newguard[8];
- arc4random_bytes((long *)newguard, sizeof(newguard));
+ arc4random_buf((long *)newguard, sizeof(newguard));
for (i = sizeof(__guard)/sizeof(__guard[0]) - 1; i; i--)
__guard[i] = newguard[i];