plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit e25d5b710a929bdd50c7fd84b57c507ee4a0fdb0
parent 0debe1c68113127acdbc3865254bd4abb2121f40
Author: wkj <devnull@localhost>
Date:   Wed, 29 Dec 2004 01:30:19 +0000

Avoid conflicts with stdlib.

Diffstat:
Msrc/lib9/lrand.c | 2+-
Msrc/lib9/rand.c | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib9/lrand.c b/src/lib9/lrand.c @@ -49,7 +49,7 @@ isrand(long seed) } void -srand(long seed) +p9srand(long seed) { lock(&lk); isrand(seed); diff --git a/src/lib9/rand.c b/src/lib9/rand.c @@ -1,8 +1,7 @@ #include <lib9.h> int -rand(void) +p9rand(void) { return lrand() & 0x7fff; } -