[dev] rand() error in pear/Crypt/HCEMD5.php:96

Chuck Hagenbuch chuck@horde.org
Wed, 08 Nov 2000 23:07:28 -0500 (EST)


Quoting Apis Hytt <php3dev@carousel.tabcat.com>:

> 	For example in Solaris stdlib.h there is defined:
> RAND_MAX .. which is 2**32  which is much less than 1000000,
> of course .. so we get the Invalid warning range error.
> 
> 	Tried 1,32767 and that was accepted as valid range .. but
> that may disrupt unique enough values.	

Make sense, and should be okay, I think... I've made the change in cvs.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"If you can't stand the heat, get out of the chicken!" - Baby Blues