From 66946f930588a5258a235e5cfaac5d2085445620 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 14 Jun 1997 00:27:03 +0000 Subject: Remove srandomdev fallback code --- usr.bin/jot/jot.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.bin/jot') diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index dba1804..39b6d55 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -96,10 +96,9 @@ main(argc, argv) getargs(argc, argv); if (randomize) { *x = (ender - begin) * (ender > begin ? 1 : -1); - if (s == -1.0) { - if (srandomdev() < 0) - srandom(time(NULL) ^ getpid()); - } else + if (s == -1.0) + srandomdev(); + else srandom((unsigned long) s); for (*i = 1; *i <= reps || infinity; (*i)++) { *y = (double) random() / LONG_MAX; -- cgit v1.1