summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2008-06-09 07:07:15 +0000
committerdjm <djm@openbsd.org>2008-06-09 07:07:15 +0000
commit780f39a56d559ff298e05915f7eec6982812543f (patch)
tree053cbc4b09bacddfbc7995b9f28b900707c72486 /sys/dev/softraid.c
parent- sort the hardware list (diff)
downloadwireguard-openbsd-780f39a56d559ff298e05915f7eec6982812543f.tar.xz
wireguard-openbsd-780f39a56d559ff298e05915f7eec6982812543f.zip
rename arc4random_bytes => arc4random_buf to match libc's nicer name;
ok deraadt@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index f63acdc2575..a9bae38c9b1 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.105 2008/04/02 21:32:03 martin Exp $ */
+/* $OpenBSD: softraid.c,v 1.106 2008/06/09 07:07:16 djm Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1597,7 +1597,7 @@ sr_checksum(char *s, u_int32_t *p, u_int32_t size)
void
sr_get_uuid(struct sr_uuid *uuid)
{
- arc4random_bytes(uuid->sui_id, sizeof(uuid->sui_id));
+ arc4random_buf(uuid->sui_id, sizeof(uuid->sui_id));
}
void