From 4fb22ff697978bc9d7da331e4afe25484b1ca0d7 Mon Sep 17 00:00:00 2001 From: pezholio Date: Mon, 24 Jun 2024 09:56:27 +0100 Subject: [PATCH] Set `Faker::Config.random` if a seed is specified --- lib/govuk_schemas/random_content_generator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/govuk_schemas/random_content_generator.rb b/lib/govuk_schemas/random_content_generator.rb index ef318cb..b043cea 100644 --- a/lib/govuk_schemas/random_content_generator.rb +++ b/lib/govuk_schemas/random_content_generator.rb @@ -7,6 +7,7 @@ class RandomContentGenerator def initialize(random: Random.new) @random = random + Faker::Config.random = @random end def string_for_type(type)