summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-12-11 09:33:21 +0100
committerRay <[email protected]>2023-12-11 09:33:21 +0100
commitc5ebdb8ba77afa5745eb01032cf1909b5a03bffa (patch)
tree0455463dfcfdfaa09385f3896b257ebe8563efc8 /src
parent6f3c87a99969e92ada46e54258b1653994c24903 (diff)
downloadraylib-c5ebdb8ba77afa5745eb01032cf1909b5a03bffa.tar.gz
raylib-c5ebdb8ba77afa5745eb01032cf1909b5a03bffa.zip
REVIEWED: Issue in sequence generation #3612
Diffstat (limited to 'src')
-rw-r--r--src/external/rprand.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/external/rprand.h b/src/external/rprand.h
index c9b460cd..7e27d980 100644
--- a/src/external/rprand.h
+++ b/src/external/rprand.h
@@ -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;