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