From d9aa453003cde124cadea6f0ff4e9e342fa492cf Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 26 Sep 2020 21:37:41 +0200 Subject: [PATCH] Fixed missed default token --- FastRng/Double/Distributions/Beta.cs | 2 +- FastRng/Double/Distributions/Cauchy.cs | 2 +- FastRng/Double/Distributions/Gamma.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FastRng/Double/Distributions/Beta.cs b/FastRng/Double/Distributions/Beta.cs index a1fe3b0..d51a6cf 100644 --- a/FastRng/Double/Distributions/Beta.cs +++ b/FastRng/Double/Distributions/Beta.cs @@ -34,7 +34,7 @@ namespace FastRng.Double.Distributions } } - public async ValueTask GetDistributedValue(CancellationToken token) + public async ValueTask GetDistributedValue(CancellationToken token = default) { if (this.Random == null) return System.Double.NaN; diff --git a/FastRng/Double/Distributions/Cauchy.cs b/FastRng/Double/Distributions/Cauchy.cs index 088d85c..e5b75a1 100644 --- a/FastRng/Double/Distributions/Cauchy.cs +++ b/FastRng/Double/Distributions/Cauchy.cs @@ -24,7 +24,7 @@ namespace FastRng.Double.Distributions public double Median { get; set; } = 0.0; - public async ValueTask GetDistributedValue(CancellationToken token) + public async ValueTask GetDistributedValue(CancellationToken token = default) { if (this.Random == null) return System.Double.NaN; diff --git a/FastRng/Double/Distributions/Gamma.cs b/FastRng/Double/Distributions/Gamma.cs index f927207..f42d30f 100644 --- a/FastRng/Double/Distributions/Gamma.cs +++ b/FastRng/Double/Distributions/Gamma.cs @@ -26,7 +26,7 @@ namespace FastRng.Double.Distributions public double Scale { get; set; } = 1.0; - public async ValueTask GetDistributedValue(CancellationToken token) + public async ValueTask GetDistributedValue(CancellationToken token = default) { if (this.Random == null) return System.Double.NaN;