OSDN Git Service

As noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias for
authorEric Andersen <andersen@codepoet.org>
Fri, 27 Apr 2001 15:37:06 +0000 (15:37 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 27 Apr 2001 15:37:06 +0000 (15:37 -0000)
srand was in the wrong file, causing rand.o to be needlessly included in some
cases.

libc/stdlib/rand.c
libc/stdlib/random.c

index f8d02cf..cacad5b 100644 (file)
@@ -24,5 +24,3 @@ int rand (void)
     return((int)random());
 }
 
-__asm__(".weak srand; srand = srandom");
-
index c040ce4..bef89c0 100644 (file)
@@ -34,3 +34,5 @@ void srandom(unsigned int seed)
        seed3 = seed % 31656 + 1;
 }
 
+__asm__(".weak srand; srand = srandom");
+