mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Track seed used when just -r is provided
This commit is contained in:
parent
ba29c1e032
commit
8fc2c93960
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue