Skip to content

Commit dcda3ce

Browse files
committed
Fix stdlib function names
1 parent 11a3d63 commit dcda3ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/WRandom.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern "C" {
55
void randomSeed(unsigned long seed)
66
{
77
if (seed != 0) {
8-
srandom(seed);
8+
srand(seed);
99
}
1010
}
1111

@@ -14,7 +14,7 @@ long random(long howbig)
1414
if (howbig == 0) {
1515
return 0;
1616
}
17-
return random() % howbig;
17+
return rand() % howbig;
1818
}
1919

2020
long random(long howsmall, long howbig)

0 commit comments

Comments
 (0)