At 1:37 AM -0700 10/15/99, [EMAIL PROTECTED] wrote:
>If you are unsatisfied with the system random number
>generator, use the following:
>
>unsigned random(void) {
> random_seed *= 2147001325;
> random_seed += 715136305;
> return (unsigned) (random_seed>>16);
>}
Is the current SysRandom [seed = (0x015A4E35L * seed) + 1;] worse than the
above by an appreciable amount?
I ask because it would be trivial to change SysRandom to use the different
constants, and we can easily do it for the 3.5 release. The only
difference of course will that the OS only returns 15 bits of data, not 16
as yours does. (For whatever reason, we return only positive values in a
signed 16 bit integer.)
--Bob