18 lines
444 B
C#
18 lines
444 B
C#
|
|
using StellaOps.Scanner.Worker.Determinism;
|
|
using System;
|
|
|
|
namespace StellaOps.Scanner.Worker.Processing;
|
|
|
|
public sealed class DeterministicRandomService
|
|
{
|
|
private readonly IDeterministicRandomProvider _provider;
|
|
|
|
public DeterministicRandomService(IDeterministicRandomProvider provider)
|
|
{
|
|
_provider = provider ?? throw new ArgumentNullException(nameof(provider));
|
|
}
|
|
|
|
public Random Create() => _provider.Create();
|
|
}
|