From 1110a080ac170ce196c80279db9f5467c77a155f Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 29 Sep 2020 20:24:55 +0200 Subject: [PATCH] Quick fix, added todo --- FastRng/Double/Distributions/LogNormal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastRng/Double/Distributions/LogNormal.cs b/FastRng/Double/Distributions/LogNormal.cs index 65b3302..a42e9dc 100644 --- a/FastRng/Double/Distributions/LogNormal.cs +++ b/FastRng/Double/Distributions/LogNormal.cs @@ -28,7 +28,7 @@ namespace FastRng.Double.Distributions if (this.Random == null) return double.NaN; - var normal = await this.Random.NextNumber(new Normal {Mean = this.Mu, StandardDeviation = this.Sigma}, token); + var normal = await this.Random.NextNumber(new Normal(), token); // TODO: Check all distributions. Used distributions must be static readonly! return Math.Exp(normal); } }