Date: Mon, 6 Nov 2006 13:55:11 +0000 (UTC) From: Diomidis Spinellis <dds@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/jot jot.1 jot.c Message-ID: <200611061355.kA6DtC4M011713@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611061355.kA6DtC4M011713>