cvs commit: src/usr.bin/jot jot.c

David Schultz das at
Fri Aug 1 09:23:25 PDT 2003

das         2003/08/01 09:23:24 PDT

  FreeBSD src repository

  Modified files:
    usr.bin/jot          jot.c 
  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 at>
  Revision  Changes    Path
  1.25      +1 -1      src/usr.bin/jot/jot.c

More information about the cvs-src mailing list