Set next sample's level based on previous level

This commit is contained in:
tsommer committed 2020-09-30 20:20:20 +02:00
1 parent 19eb4b5f4e
commit 3c7713ae00
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ namespace FastRng.Double
if (this.samples[nextBucket] >= this.threshold)
{
this.samples[nextBucket] = 0.0;
this.samples[nextBucket] -= this.threshold;
return nextNumber;
}
}