diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-27 15:37:06 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-27 15:37:06 +0000 |
commit | 8802da12759ac0cc4fefb09c02522857a3fc961d (patch) | |
tree | e6ae7b85165a46e96b18d0343033f5cfd80d4032 /libc/stdlib/random.c | |
parent | 138e736e54f7edb9164fe2125b3245b28c111761 (diff) |
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.
Diffstat (limited to 'libc/stdlib/random.c')
-rw-r--r-- | libc/stdlib/random.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); + |