summaryrefslogtreecommitdiffstats
path: root/usr.bin/jot
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-06-14 00:27:03 +0000
committerache <ache@FreeBSD.org>1997-06-14 00:27:03 +0000
commit66946f930588a5258a235e5cfaac5d2085445620 (patch)
treed21484bd0330527c7e1660f2d64ee0a4fdd01014 /usr.bin/jot
parent1b5fc58b0b83c6f4268bdcfa1f6b16335729bbde (diff)
downloadFreeBSD-src-66946f930588a5258a235e5cfaac5d2085445620.zip
FreeBSD-src-66946f930588a5258a235e5cfaac5d2085445620.tar.gz
Remove srandomdev fallback code
Diffstat (limited to 'usr.bin/jot')
-rw-r--r--usr.bin/jot/jot.c7
1 files changed, 3 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud