diff options
| author | Richard M. Stallman | 1994-09-04 07:01:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-04 07:01:28 +0000 |
| commit | 8063726f3192e978f334c4806a5b6ba168aa4242 (patch) | |
| tree | 0c1e5f426f71f17bdcc036311b8087ffed13472d /src | |
| parent | 19dd4ea71c055f6d2b411c86326ea1b7da213d72 (diff) | |
| download | emacs-8063726f3192e978f334c4806a5b6ba168aa4242.tar.gz emacs-8063726f3192e978f334c4806a5b6ba168aa4242.zip | |
(random, srandom): Check HAVE_LRAND48, not HAVE_RAND48.
Call lrand48, nor rand48.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 5b179453deb..004a0b95676 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -2614,8 +2614,8 @@ bcmp (b1, b2, length) /* This could be a macro! */ | |||
| 2614 | long | 2614 | long |
| 2615 | random () | 2615 | random () |
| 2616 | { | 2616 | { |
| 2617 | #ifdef HAVE_RAND48 | 2617 | #ifdef HAVE_LRAND48 |
| 2618 | return rand48 (); | 2618 | return lrand48 (); |
| 2619 | #else | 2619 | #else |
| 2620 | /* The BSD rand returns numbers in the range of 0 to 2e31 - 1, | 2620 | /* The BSD rand returns numbers in the range of 0 to 2e31 - 1, |
| 2621 | with unusable least significant bits. The USG rand returns | 2621 | with unusable least significant bits. The USG rand returns |
| @@ -2632,7 +2632,7 @@ random () | |||
| 2632 | srandom (arg) | 2632 | srandom (arg) |
| 2633 | int arg; | 2633 | int arg; |
| 2634 | { | 2634 | { |
| 2635 | #ifdef HAVE_RAND48 | 2635 | #ifdef HAVE_LRAND48 |
| 2636 | return srand48 (); | 2636 | return srand48 (); |
| 2637 | #else | 2637 | #else |
| 2638 | srand (arg); | 2638 | srand (arg); |