mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use smaller range for default random seed
RSpec seems to use a smaller range, something like 65k (UInt16).
This commit is contained in:
parent
e5ed6418db
commit
4e50108fb9
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ module Spectator
|
||||||
protected getter random = Random::DEFAULT
|
protected getter random = Random::DEFAULT
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@seed = seed = @random.rand(UInt64)
|
@seed = seed = @random.rand(UInt16).to_u64
|
||||||
@random.new_seed(seed)
|
@random.new_seed(seed)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue