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
|
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…
Add table
Add a link
Reference in a new issue