From cde75c557dc753d33e71ea673ba8ca5a8f06aa66 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 26 Sep 2020 00:06:03 +0200 Subject: [PATCH] Added common interface for distributions --- FastRng/Distributions/IDistribution.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 FastRng/Distributions/IDistribution.cs diff --git a/FastRng/Distributions/IDistribution.cs b/FastRng/Distributions/IDistribution.cs new file mode 100644 index 0000000..f4c3a7f --- /dev/null +++ b/FastRng/Distributions/IDistribution.cs @@ -0,0 +1,12 @@ +using System.Threading; +using System.Threading.Tasks; + +namespace FastRng.Distributions +{ + public interface IDistribution + { + public IRandom Random { get; set; } + + public Task GetDistributedValue(CancellationToken token); + } +} \ No newline at end of file