Skip to content

Commit

Permalink
change to new PCG
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLloyd committed Oct 12, 2024
1 parent 2185c03 commit 9d1a140
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tests/PCGTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,20 +207,21 @@ public void Double_Exp_Bug()
}

[Fact]
public void PCG_Multiplier_IS_Not_Faster()
public void PCG_Multiplier_Is_Not_Faster()
{
Gen.Select(Gen.UInt, Gen.ULong, Gen.UInt[1, 10_000])
.Select((i, s, m) => (new PCG(i, s), new PCGTest(i, s), m, HashHelper.GetFastModMultiplier(m)))
.Faster(
(o, _, u, _) => o.Next(u),
(_, n, u, m) => n.Next(u, m),
(o, _, u, _) => o.Next(u),
repeat: 100,
raiseexception: false,
writeLine: output.WriteLine
);
}

[Fact]
public void PCG_New_Faster()
public void PCG_New_Is_Not_Faster()
{
Gen.Select(Gen.UInt, Gen.ULong, Gen.UInt[1, 10_000])
.Select((i, s, m) => (new PCG(i, s), new PCGTest(i, s), m))
Expand Down

0 comments on commit 9d1a140

Please sign in to comment.