cvs commit: src/games/random random.c randomize_fd.c randomize_fd.h

Andrey A. Chernov ache at FreeBSD.org
Fri Aug 8 01:42:32 UTC 2008


ache        2008-08-08 01:42:17 UTC

  FreeBSD src repository

  Modified files:
    games/random         random.c randomize_fd.c randomize_fd.h 
  Log:
  SVN rev 181410 on 2008-08-08 01:42:17Z by ache
  
  I was confused a bit by the wrong construction with RAND_MAX
  used in randomize_fd.c.
  Although the max value is the same currently, RAND_MAX is for rand(),
  not for random().
  So move RANDOM_MAX const to the common file now, make it UL and
  use in randomize_fd.c too.
  (in any case its old value was 1 less then must be, as noted in
  the prev. commit)
  
  Revision  Changes    Path
  1.22      +3 -3      src/games/random/random.c
  1.4       +1 -1      src/games/random/randomize_fd.c
  1.3       +6 -0      src/games/random/randomize_fd.h


More information about the cvs-all mailing list