Use smaller range for default random seed

RSpec seems to use a smaller range, something like 65k (UInt16).
This commit is contained in:
Michael Miller 2020-07-27 13:39:57 -06:00
parent e5ed6418db
commit 4e50108fb9
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -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