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;