Date: Fri, 1 Aug 2003 09:23:24 -0700 (PDT) From: David Schultz <das@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/jot jot.c Message-ID: <200308011623.h71GNOon096036@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
das 2003/08/01 09:23:24 PDT
FreeBSD src repository
Modified files:
usr.bin/jot jot.c
Log:
Fix jot so that 'jot -r -w %d 1 1 4' never prints 4. Previously, it
would print it with probability 1/2**32. It seems that the correct
behavior is to print 4 with probability 1/4, but I'd like to avoid
breaking POLA until all the range inconsistencies in jot can be fixed
in one pass. See PR for details.
PR: 54878
Submitted by: David Brinegar <jot.3.brinegar@spamgourmet.com>
Revision Changes Path
1.25 +1 -1 src/usr.bin/jot/jot.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308011623.h71GNOon096036>
