Browse Source

As noted by Michiel Thuys <michiel.thuys@intersil.com>, the weak alias for
srand was in the wrong file, causing rand.o to be needlessly included in some
cases.

Eric Andersen 23 years ago
parent
commit
8802da1275
2 changed files with 2 additions and 2 deletions
  1. 0 2
      libc/stdlib/rand.c
  2. 2 0
      libc/stdlib/random.c

+ 0 - 2
libc/stdlib/rand.c

@@ -24,5 +24,3 @@ int rand (void)
     return((int)random());
 }
 
-__asm__(".weak srand; srand = srandom");
-

+ 2 - 0
libc/stdlib/random.c

@@ -34,3 +34,5 @@ void srandom(unsigned int seed)
 	seed3 = seed % 31656 + 1;
 }
 
+__asm__(".weak srand; srand = srandom");
+