11 lines
274 B
C#
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);
|
|
}
|