diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-07 23:20:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-07 23:20:47 +0000 |
commit | 25c9f333f4ecb522ee1bc6632b9f40e24d34485b (patch) | |
tree | 397add37fada91d9c0e7025b526453bbd1a803c7 /bin/ksh/main.c | |
parent | 276d87f6490828019fdc5d0da2e7a587f5d616bf (diff) |
do not push ksh into stupid-random mode; leave it in arc4random() mode.
oops. spotted by weerd@weirdnet.nl
Diffstat (limited to 'bin/ksh/main.c')
-rw-r--r-- | bin/ksh/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/main.c b/bin/ksh/main.c index 4262feac6de..352add1f797 100644 --- a/bin/ksh/main.c +++ b/bin/ksh/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.26 2004/01/08 05:43:14 jmc Exp $ */ +/* $OpenBSD: main.c,v 1.27 2004/06/07 23:20:46 deraadt Exp $ */ /* * startup, main loop, environments and error handling @@ -254,7 +254,7 @@ main(int argc, char *argv[]) } ppid = getppid(); setint(global("PPID"), (long) ppid); -#ifdef KSH +#if defined(KSH) && !defined(__OpenBSD__) setint(global("RANDOM"), (long) (time((time_t *)0) * kshpid * ppid)); #endif /* KSH */ /* setstr can't fail here */ |