Skip to content

Commit

Permalink
remove 1U check
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLloyd committed Oct 13, 2024
1 parent ed6499a commit 500d089
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Tests/PCGTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ public uint NextLemire(uint maxExclusive, ulong threshold)
}
public uint NextCurrentWithThreshold(uint maxExclusive, uint threshold)
{
if (maxExclusive == 1U) return 0U;
var n = Next();
while (n < threshold) n = Next();
return n % maxExclusive;
Expand Down

0 comments on commit 500d089

Please sign in to comment.