Update C sources

This commit is contained in:
Milan Nikolic 2023-11-09 14:32:33 +01:00
parent 07d1374c41
commit d0612c27b2
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
17 changed files with 2216 additions and 1053 deletions

View file

@ -186,7 +186,7 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
{
int *sequence = NULL;
if (count > (abs(max - min) + 1))
if (count > (unsigned int)(abs(max - min) + 1))
{
RPRAND_LOG("WARNING: Sequence count required is greater than range provided\n");
//count = (max - min);
@ -198,9 +198,9 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
int value = 0;
bool value_is_dup = false;
for (int i = 0; i < count;)
for (unsigned int i = 0; i < count;)
{
value = (rprand_xoshiro()%(abs(max - min) + 1)) + min;
value = ((int)rprand_xoshiro()%(abs(max - min) + 1)) + min;
value_is_dup = false;
for (int j = 0; j < i; j++)