Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2008 01:02:30 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/games/random random.c
Message-ID:  <200808080102.m7812gH4059347@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ache        2008-08-08 01:02:30 UTC

  FreeBSD src repository

  Modified files:
    games/random         random.c 
  Log:
  SVN rev 181409 on 2008-08-08 01:02:30Z by ache
  
  1) Replace hardcoded RANDOM_MAX macro with wrong (1 less than must be)
  value with ((double)RAND_MAX + 1)
  2) For exit code increase valid denominator upper range from 255 to 256
  since returned value is [0 .. denom - 1]
  
  Revision  Changes    Path
  1.21      +5 -11     src/games/random/random.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808080102.m7812gH4059347>