Skip to content

Commit 91ac3cc

Browse files
committed
FIX: LoadRandomSequence(), using GetRandomValue() #5393
1 parent 19a1683 commit 91ac3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ int *LoadRandomSequence(unsigned int count, int min, int max)
17651765

17661766
for (int i = 0; i < (int)count;)
17671767
{
1768-
value = (rand()%(abs(max - min) + 1) + min);
1768+
value = GetRandomValue(min, max);
17691769
dupValue = false;
17701770

17711771
for (int j = 0; j < i; j++)

0 commit comments

Comments
 (0)