diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-01-07 23:13:49 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-01-07 23:13:49 +0000 |
commit | e39ad44ca931953c1004f94eb5b89ad7e2f59df0 (patch) | |
tree | deb115c996b5afbd7f320091d636eab4ba65c0d0 /sys/dev/rndvar.h | |
parent | 288eb9bdabfd29a4643657cee203bd87068d9425 (diff) |
some minor improvements to rnd.
1. only support pool words == 2048.
2. define the amount of key we use.
3. define the amount of rc4 we skip.
4. use arc4random_buf instead of reimplementing inline.
5. bzero some more "secrets".
ok deraadt djm
Diffstat (limited to 'sys/dev/rndvar.h')
-rw-r--r-- | sys/dev/rndvar.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/rndvar.h b/sys/dev/rndvar.h index 0c62a5bd033..34f62d70ffa 100644 --- a/sys/dev/rndvar.h +++ b/sys/dev/rndvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rndvar.h,v 1.27 2011/01/07 04:56:52 deraadt Exp $ */ +/* $OpenBSD: rndvar.h,v 1.28 2011/01/07 23:13:48 tedu Exp $ */ /* * Copyright (c) 1996,2000 Michael Shalayeff. @@ -31,8 +31,6 @@ #ifndef __RNDVAR_H__ #define __RNDVAR_H__ -#define POOLWORDS 2048 /* Power of 2 - note that this is 32-bit words */ - #define RND_SRC_TRUE 0 #define RND_SRC_TIMER 1 #define RND_SRC_MOUSE 2 |