From e6d34b13997279d9cd151ac441d5e0ef6b28b49c Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 10 Dec 2024 09:59:38 +0100 Subject: [PATCH] get float from content random --- src/docs-generator/Domain/Generators.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs-generator/Domain/Generators.cs b/src/docs-generator/Domain/Generators.cs index 6d2b665..feef603 100644 --- a/src/docs-generator/Domain/Generators.cs +++ b/src/docs-generator/Domain/Generators.cs @@ -27,7 +27,7 @@ static Generators() .Ignore(p => p.Links) .Ignore(p => p.Directory) .RuleFor(p => p.FileName, f => f.System.FileName("md")) - .RuleFor(p => p.IncludeInUpdate, f => f.Random.Float() <= Determinism.Random.ContentProbability) + .RuleFor(p => p.IncludeInUpdate, f => Determinism.Random.Contents.Float() <= Determinism.Random.ContentProbability) .RuleFor(p => p.Sections, f => Section.Generate(Determinism.Random.Contents.Number(1, 12)).ToArray()); }