From 8802da12759ac0cc4fefb09c02522857a3fc961d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 27 Apr 2001 15:37:06 +0000 Subject: As noted by Michiel Thuys , the weak alias for srand was in the wrong file, causing rand.o to be needlessly included in some cases. --- libc/stdlib/rand.c | 2 -- libc/stdlib/random.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/rand.c b/libc/stdlib/rand.c index f8d02cfb4..cacad5bf3 100644 --- a/libc/stdlib/rand.c +++ b/libc/stdlib/rand.c @@ -24,5 +24,3 @@ int rand (void) return((int)random()); } -__asm__(".weak srand; srand = srandom"); - diff --git a/libc/stdlib/random.c b/libc/stdlib/random.c index c040ce455..bef89c01f 100644 --- a/libc/stdlib/random.c +++ b/libc/stdlib/random.c @@ -34,3 +34,5 @@ void srandom(unsigned int seed) seed3 = seed % 31656 + 1; } +__asm__(".weak srand; srand = srandom"); + -- cgit v1.2.3