diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-11-21 22:58:41 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-11-21 22:58:41 +0000 |
commit | 5762a31258d44b6a7a59cdb435043f32894f1231 (patch) | |
tree | 42131344be76da39bbfcc4ffca636412cb98549b | |
parent | f3aacb484d20d0a0fe52a808a7892e5949e554df (diff) |
adding timer randomness in ioctl doesn't really help and looks suspicious.
ok deraadt
-rw-r--r-- | sys/dev/rnd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 3c2f2d48083..f33a99b7967 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.103 2010/10/02 15:49:17 tedu Exp $ */ +/* $OpenBSD: rnd.c,v 1.104 2010/11/21 22:58:40 tedu Exp $ */ /* * rnd.c -- A strong random number generator @@ -1140,8 +1140,6 @@ randomioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) int ret = 0; u_int cnt; - add_timer_randomness((u_long)p ^ (u_long)data ^ cmd); - switch (cmd) { case FIOASYNC: /* rnd has no async flag in softc so this is really a no-op. */ @@ -1201,6 +1199,5 @@ randomioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) ret = ENOTTY; } - add_timer_randomness((u_long)p ^ (u_long)data ^ cmd); return ret; } |