]> git.saurik.com Git - apple/libc.git/blame_incremental - gen/FreeBSD/drand48.c.patch
Libc-763.11.tar.gz
[apple/libc.git] / gen / FreeBSD / drand48.c.patch
... / ...
CommitLineData
1--- drand48.c.orig 2009-11-07 14:51:37.000000000 -0800
2+++ drand48.c 2009-11-07 14:51:39.000000000 -0800
3@@ -16,10 +16,10 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/dra
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 }