mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
REVIEWED: Issue in sequence generation #3612
This commit is contained in:
5
src/external/rprand.h
vendored
5
src/external/rprand.h
vendored
@@ -200,8 +200,7 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
|
||||
|
||||
for (unsigned int i = 0; i < count;)
|
||||
{
|
||||
value = ((int)rprand_xoshiro()%(abs(max - min) + 1)) + min;
|
||||
value_is_dup = false;
|
||||
value = ((unsigned int)rprand_xoshiro()%(abs(max - min) + 1)) + min;
|
||||
|
||||
for (int j = 0; j < i; j++)
|
||||
{
|
||||
@@ -217,6 +216,8 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
|
||||
sequence[i] = value;
|
||||
i++;
|
||||
}
|
||||
|
||||
value_is_dup = false;
|
||||
}
|
||||
|
||||
return sequence;
|
||||
|
Reference in New Issue
Block a user