mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
Avoid conflicts with stdlib.
This commit is contained in:
parent
0debe1c681
commit
e25d5b710a
2 changed files with 2 additions and 3 deletions
|
@ -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 a new issue