Avoid conflicts with stdlib.
This commit is contained in:
parent
0debe1c681
commit
e25d5b710a
@ -49,7 +49,7 @@ isrand(long seed)
|
||||
}
|
||||
|
||||
void
|
||||
srand(long seed)
|
||||
p9srand(long seed)
|
||||
{
|
||||
lock(&lk);
|
||||
isrand(seed);
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
#include <lib9.h>
|
||||
|
||||
int
|
||||
rand(void)
|
||||
p9rand(void)
|
||||
{
|
||||
return lrand() & 0x7fff;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user