Ver a proveniência

REVIEWED: Issue in sequence generation #3612

pull/3628/head
Ray há 1 ano
ascendente
cometimento
c5ebdb8ba7
1 ficheiros alterados com 3 adições e 2 eliminações
  1. +3
    -2
      src/external/rprand.h

+ 3
- 2
src/external/rprand.h Ver ficheiro

@ -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;

Carregando…
Cancelar
Guardar