2009-03-04 04:28:35 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1993 Martin Birgmeier
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* You may redistribute unmodified or modified versions of this source
|
|
|
|
* code provided that the above copyright notice and this and the
|
|
|
|
* following conditions are retained.
|
|
|
|
*
|
|
|
|
* This software is provided ``as is'', and comes with no warranties
|
|
|
|
* of any kind. I shall in no event be liable for anything that happens
|
|
|
|
* to anyone/anything when using this software.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
#include "rand48.h"
|
|
|
|
|
2010-09-27 16:42:28 +02:00
|
|
|
extern unsigned short __rand48_seed[3];
|
2009-03-04 04:28:35 +01:00
|
|
|
|
|
|
|
double
|
|
|
|
drand48(void)
|
|
|
|
{
|
2010-09-27 16:42:28 +02:00
|
|
|
return erand48(__rand48_seed);
|
2009-03-04 04:28:35 +01:00
|
|
|
}
|