mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
random_sample should use Spectator's global random
This commit is contained in:
parent
57c54d943c
commit
31a2bbcebb
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ module Spectator::DSL
|
|||
# 2. The collection might contain randomly generated values.
|
||||
# Iterating multiple times would generate inconsistent values at runtime.
|
||||
def %to_a
|
||||
%sample.to_a.sample({{count}})
|
||||
%sample.to_a.sample({{count}}, ::Spectator.random)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue