Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> rand() and RAND_MAX are defined by ANSI C, random() is a BSD-ism. I
> suggest you use the former.
Unfortunately, except on a few platforms like Linux, the typical
rand() implementation is vastly inferior to the typical random()
implementation. BSD wouldn't have bothered to roll their own if
the older code hadn't been so godawful. But unless you are using
glibc, you probably have a bug-compatible rand().
regards, tom lane
In response to
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2000-08-06 02:19:56|
|Subject: Re: Quoting fun |
|Previous:||From: Tom Lane||Date: 2000-08-06 01:54:27|
|Subject: Re: comparing rows |