Fixed missed default token

This commit is contained in:
Thorsten Sommer 2020-09-26 21:58:27 +02:00
parent 72bdf8cff0
commit 0609f3eab3

View File

@ -24,7 +24,7 @@ namespace FastRng.Double.Distributions
public double Scale { get; set; } = 1.0; public double Scale { get; set; } = 1.0;
public async ValueTask<double> GetDistributedValue(CancellationToken token) public async ValueTask<double> GetDistributedValue(CancellationToken token = default)
{ {
if (this.Random == null) if (this.Random == null)
return System.Double.NaN; return System.Double.NaN;