Skip to content

Commit

Permalink
Merge pull request rapiz1#25 from victorlvl47/patch-1
Browse files Browse the repository at this point in the history
Refactored prng.c
  • Loading branch information
rapiz1 authored Nov 7, 2020
2 parents 136d3cb + 860281e commit ad79bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prng.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ unsigned int prngRand()
nSeed = (8253729 * nSeed + 2396403);

// Take the seed and return a value between 0 and 32767
return nSeed % 32767;
return nSeed % PRNG_MAX;
}

0 comments on commit ad79bb1

Please sign in to comment.