Track seed used when just -r is provided

This commit is contained in:
Michael Miller 2020-07-27 13:32:39 -06:00
parent ba29c1e032
commit 8fc2c93960
No known key found for this signature in database
GPG Key ID: FB9F12F7C646A4AD
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ module Spectator
# Random number generator to use.
protected getter random = Random::DEFAULT
def initialize
@seed = seed = @random.rand(UInt64)
@random.new_seed(seed)
end
@primary_formatter : Formatting::Formatter?
@additional_formatters = [] of Formatting::Formatter
@fail_fast = false