فهرست منبع

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 25 سال پیش
والد
کامیت
8802da1275
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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");
+