summaryrefslogtreecommitdiff
path: root/sys/ddb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-21 05:11:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-21 05:11:48 +0000
commited5af2c5d8c7cec015e66f0e979099ef831f1865 (patch)
treed3e5bd7e7ce601e6473fda86ec90023c486baa4e /sys/ddb
parente3671a14ed123cc979eb973a20367124a06bd679 (diff)
random is stock
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_hangman.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/ddb/db_hangman.c b/sys/ddb/db_hangman.c
index 9736ac192bd..bb0cb153849 100644
--- a/sys/ddb/db_hangman.c
+++ b/sys/ddb/db_hangman.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_hangman.c,v 1.7 1996/08/29 09:26:34 deraadt Exp $ */
+/* $OpenBSD: db_hangman.c,v 1.8 1996/10/21 05:11:47 deraadt Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt, Michael Shalayeff
@@ -37,10 +37,7 @@
#include <ddb/db_sym.h>
#include <ddb/db_extern.h>
#include <dev/cons.h>
-#include "random.h"
-#if NRANDOM > 0
#include <dev/rndvar.h>
-#endif
#define TOLOWER(c) (('A'<=(c)&&(c)<='Z')?(c)-'a'+'A':(c))
#define ISALPHA(c) (('a'<=(c)&&(c)<='z')||('A'<=(c)&&(c)<='Z'))
@@ -54,14 +51,9 @@ static __inline size_t
db_random( mod )
register size_t mod;
{
-#if NRANDOM > 0
size_t ret;
get_random_bytes(&ret, sizeof(ret) );
return ret % mod;
-#else
- u_int random __P((void));
- return (size_t)(random() % mod);
-#endif
}
static int skill;