artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6c3ef3
)
do not exhaust the random pool while debugging
author
mickey
<mickey@openbsd.org>
Wed, 5 Apr 2000 21:54:48 +0000
(21:54 +0000)
committer
mickey
<mickey@openbsd.org>
Wed, 5 Apr 2000 21:54:48 +0000
(21:54 +0000)
sys/ddb/db_hangman.c
patch
|
blob
|
history
diff --git
a/sys/ddb/db_hangman.c
b/sys/ddb/db_hangman.c
index
6bdc2ca
..
790afe2
100644
(file)
--- a/
sys/ddb/db_hangman.c
+++ b/
sys/ddb/db_hangman.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: db_hangman.c,v 1.1
3 1998/04/26 21:40:50 deraadt Exp $
*/
+/* $OpenBSD: db_hangman.c,v 1.1
4 2000/04/05 21:54:48 mickey Exp $
*/
/*
* Copyright (c) 1996 Theo de Raadt, Michael Shalayeff
@@
-65,9
+65,7
@@
static __inline size_t
db_random(mod)
register size_t mod;
{
- size_t ret;
- get_random_bytes(&ret, sizeof(ret));
- return ret % mod;
+ return arc4random() % mod;
}
static __inline char *