diff options
Diffstat (limited to 'usr.bin/jot')
-rw-r--r-- | usr.bin/jot/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/jot/jot.1 | 4 | ||||
-rw-r--r-- | usr.bin/jot/jot.c | 8 |
3 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/jot/Makefile b/usr.bin/jot/Makefile index 83db4c0..8b5e4a5 100644 --- a/usr.bin/jot/Makefile +++ b/usr.bin/jot/Makefile @@ -2,4 +2,6 @@ PROG= jot +CFLAGS += -Wall -W + .include <bsd.prog.mk> diff --git a/usr.bin/jot/jot.1 b/usr.bin/jot/jot.1 index 6ad5e3c..0567b87 100644 --- a/usr.bin/jot/jot.1 +++ b/usr.bin/jot/jot.1 @@ -169,9 +169,9 @@ the result of .Dl jot -w %ds/old/new/ 30 2 - 5 .Pp The stuttering sequence 9, 9, 8, 8, 7, etc. can be -produced by suitable choice of precision and step size, +produced by suitable choice of step size, as in -.Dl jot 0 9 - -.5 +.Dl jot - 9 0 -.5 .Pp and a file containing exactly 1024 bytes is created with .Dl jot -b x 512 > block diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index 64d5930..5b67862 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)jot.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: jot.c,v 1.7 1997/07/15 09:59:30 charnier Exp $"; + "$Id: jot.c,v 1.8 1997/11/03 07:45:33 charnier Exp $"; #endif /* not lint */ /* @@ -101,12 +101,8 @@ main(argc, argv) getargs(argc, argv); if (randomize) { *x = (ender - begin) * (ender > begin ? 1 : -1); - if (s == -1.0) - srandomdev(); - else - srandom((unsigned long) s); for (*i = 1; *i <= reps || infinity; (*i)++) { - *y = (double) random() / LONG_MAX; + *y = (double) arc4random() / ULONG_MAX; putdata(*y * *x + begin, reps - *i); } } |