cvs commit: src/usr.bin/jot jot.1 jot.c
Diomidis Spinellis
dds at FreeBSD.org
Mon Nov 6 13:55:22 UTC 2006
dds 2006-11-06 13:55:11 UTC
FreeBSD src repository
Modified files:
usr.bin/jot jot.1 jot.c
Log:
Do What I Mean when the user asks for random integers or characters.
Up to now jot would fail to generate the last character in the range
or skew the integer distribution in a way that would generate the numbers
in the range's limits with half the probability of the rest.
This modification fixes the program, rather than documenting the
strange behavior, as suggested in docs/54879.
Also, correctly specify the range of random(3).
PR: docs/54879
MFC after: 2 weeks
Revision Changes Path
1.22 +18 -1 src/usr.bin/jot/jot.1
1.32 +32 -7 src/usr.bin/jot/jot.c
More information about the cvs-src
mailing list