Skip to content

Commit

Permalink
Set Faker::Config.random if a seed is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
pezholio committed Jun 24, 2024
1 parent 0b74127 commit 4fb22ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/govuk_schemas/random_content_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class RandomContentGenerator

def initialize(random: Random.new)
@random = random
Faker::Config.random = @random
end

def string_for_type(type)
Expand Down

0 comments on commit 4fb22ff

Please sign in to comment.