Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/include



On Sat, Mar 01, 2008 at 09:51:33PM +0000, David Laight wrote:
 > > > add RANDOM_MAX define from anon ymous
 > > 
 > > If we're going to do this (and I think it's a fine idea) can we take
 > > some steps to try to get other OSes to also provide this #define?
 > > 
 > > random() has been around for a long time and has a more or less
 > > standard interface.
 > 
 > Since the man page defines the range as 0 to 2^32-1 is a named
 > constant needed ?

Not really, which is why there hasn't been one for the last 25 years.
But since this tends to cause people to incorrectly use RAND_MAX
instead, it's just as well to have it.

 > Oh - I presume the limit doesn't change on LP64

Indeed not.

-- 
   - David A. Holland / dholland+netbsd%eecs.harvard.edu@localhost


Home | Main Index | Thread Index | Old Index