Files
Flypaper/test/Flypaper.Tests/Fakes/SeededRandomSource.cs
T
2026-11-14 16:08:45 +01:00

11 lines
274 B
C#

using Flypaper.Core.Abstractions;
namespace Flypaper.Tests.Fakes;
internal sealed class SeededRandomSource(int seed) : IRandomSource
{
private readonly Random _random = new(seed);
public int Next(int minValue, int maxValue) => _random.Next(minValue, maxValue);
}