[uClibc]{d,m,s}rand48
Erik Andersen
andersen at lineo.com
Tue May 29 19:36:20 UTC 2001
On Tue May 29, 2001 at 12:30:46PM -0700, Jason Heiss wrote:
> I'm trying to compile pppd against uClibc and it uses {d,m,s}rand48.
> Anyone have a clean implementation of these lying around before
> I try to rip them out of glibc?
double drand48(void)
{
return (double)random() / (double)0x7fffffffL; /* 2**31-1 */
}
long mrand48(void)
{
return random();
}
void srand48(long seedval)
{
srandom((int)seedval);
}
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list