File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ function sample_joint(
193193 end
194194
195195 # seed
196- @everywhere seed_for_storage! ($ storage)
196+ @everywhere seed_for_storage! ((Array, $ storage) )
197197
198198 # initialize chains
199199 if (filename != nothing ) && isfile (filename)
Original file line number Diff line number Diff line change @@ -353,13 +353,16 @@ end
353353
354354@doc doc"""
355355 seed_for_storage!(storage[, seed])
356+ seed_for_storage!((storage1, storage2, ...)[, seed])
356357
357358Set the global random seed for the RNG which controls `storage`-type.
358359"""
359360seed_for_storage! (:: Type{<:Array} , seed= nothing ) =
360361 Random. seed! ((seed == nothing ? () : (seed,)). .. )
361362seed_for_storage! (storage:: Any , seed= nothing ) =
362363 error (" Don't know how to set seed for storage=$storage " )
364+ seed_for_storage! (storages:: Tuple , seed= nothing ) =
365+ seed_for_storage! .(storages, seed)
363366
364367
365368# ## parallel utility function
You can’t perform that action at this time.
0 commit comments