Skip to content
Snippets Groups Projects
Commit 27a49f61 authored by François  LAURENT's avatar François LAURENT
Browse files

same fix for capacitysampling

parent 4be4bce5
No related branches found
No related tags found
No related merge requests found
Pipeline #112524 failed
...@@ -771,6 +771,7 @@ struct CapacitySampling <: RatioBasedSampling ...@@ -771,6 +771,7 @@ struct CapacitySampling <: RatioBasedSampling
selectors selectors
maxcount::Integer maxcount::Integer
rng rng
seed
end end
""" """
...@@ -787,9 +788,9 @@ function capacitysampling(selectors, maxcount::Integer; seed=nothing, rng=nothin ...@@ -787,9 +788,9 @@ function capacitysampling(selectors, maxcount::Integer; seed=nothing, rng=nothin
if isnothing(rng) if isnothing(rng)
rng = Random.default_rng() rng = Random.default_rng()
end end
Random.seed!(rng, seed) #Random.seed!(rng, seed)
end end
LazyIndex(CapacitySampling(asselectors(selectors), maxcount, rng)) LazyIndex(CapacitySampling(asselectors(selectors), maxcount, rng, seed))
end end
function capacitysampling(maxcount::Integer; kwargs...) function capacitysampling(maxcount::Integer; kwargs...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment