]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/drand48.c.patch
Libc-583.tar.gz
[apple/libc.git] / gen / FreeBSD / drand48.c.patch
1 --- drand48.c.orig 2003-05-20 15:21:01.000000000 -0700
2 +++ drand48.c 2005-11-03 13:20:19.000000000 -0800
3 @@ -16,10 +16,10 @@
4
5 #include "rand48.h"
6
7 -extern unsigned short _rand48_seed[3];
8 -
9 double
10 drand48(void)
11 {
12 - return erand48(_rand48_seed);
13 + ERAND48_BEGIN;
14 + _DORAND48(_rand48_seed);
15 + ERAND48_END(_rand48_seed);
16 }