From: mickey Date: Fri, 14 Apr 2000 14:40:50 +0000 (+0000) Subject: this should fix the alpha; closes PR kernel/1189 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d7f2fb166bda3bcbfe4b600534d9b67c679be841;p=openbsd this should fix the alpha; closes PR kernel/1189 --- diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index e19aa245fc2..5128e67c0f2 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.36 2000/04/13 13:48:29 mickey Exp $ */ +/* $OpenBSD: rnd.c,v 1.37 2000/04/14 14:40:50 mickey Exp $ */ /* * random.c -- A strong random number generator @@ -1045,7 +1045,7 @@ randomioctl(dev, cmd, data, flag, p) int ret = 0; u_int cnt; - add_timer_randomness((int)p); + add_timer_randomness((u_long)p ^ (u_long)data ^ cmd); switch (cmd) { case RNDGETENTCNT: @@ -1085,6 +1085,7 @@ randomioctl(dev, cmd, data, flag, p) default: ret = EINVAL; } - add_timer_randomness((int)p); + + add_timer_randomness((u_long)p ^ (u_long)data ^ cmd); return ret; }