-/* $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
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:
default:
ret = EINVAL;
}
- add_timer_randomness((int)p);
+
+ add_timer_randomness((u_long)p ^ (u_long)data ^ cmd);
return ret;
}