Skip to content

Commit

Permalink
Seed should returns value set on instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Mar 29, 2024
1 parent e0b0ced commit dfa22d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .Lib9c.Tests/Action/Common/TestRandom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ public class TestRandom : IRandom

public TestRandom(int seed = default)
{
Seed = seed;
_random = new System.Random(seed);
}

public int Seed => 0;
public int Seed { get; }

public int Next()
{
Expand Down

0 comments on commit dfa22d2

Please sign in to comment.