Skip to content

Commit

Permalink
REVIEWED: Issue in sequence generation raysan5#3612
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Dec 11, 2023
1 parent 6f3c87a commit c5ebdb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/external/rprand.h
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand All @@ -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;
Expand Down

0 comments on commit c5ebdb8

Please sign in to comment.