summaryrefslogtreecommitdiff
path: root/sys/dev/rndvar.h
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/dev/rndvar.h
parent4c1ad4a6cb68b98b13b7a966950ddb4ed17ce8a0 (diff)
rename arc4random_bytes => arc4random_buf to match libc's nicer name;
ok deraadt@
Diffstat (limited to 'sys/dev/rndvar.h')
-rw-r--r--sys/dev/rndvar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rndvar.h b/sys/dev/rndvar.h
index c6831502c0b..4e58b342736 100644
--- a/sys/dev/rndvar.h
+++ b/sys/dev/rndvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rndvar.h,v 1.20 2008/03/02 21:29:07 djm Exp $ */
+/* $OpenBSD: rndvar.h,v 1.21 2008/06/09 07:07:16 djm Exp $ */
/*
* Copyright (c) 1996,2000 Michael Shalayeff.
@@ -31,7 +31,7 @@
#ifndef __RNDVAR_H__
#define __RNDVAR_H__
-#define POOLWORDS 1024 /* Power of 2 - note that this is 32-bit words */
+#define POOLWORDS 2048 /* Power of 2 - note that this is 32-bit words */
#define RND_RND 0 /* real randomness like nuclear chips */
#define RND_SRND 1 /* strong random source */
@@ -85,7 +85,7 @@ extern struct rndstats rndstats;
void enqueue_randomness(int, int);
void get_random_bytes(void *, size_t);
-void arc4random_bytes(void *, size_t);
+void arc4random_buf(void *, size_t);
u_int32_t arc4random(void);
u_int32_t arc4random_uniform(u_int32_t);