Skip to content

Commit 423d731

Browse files
authored
Update ext/AdvancedPSLibtaskExt.jl
1 parent 97e69ed commit 423d731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/AdvancedPSLibtaskExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ end
6262

6363
"""Set the RNG for a `LibtaskTrace`."""
6464
function set_rng!(trace::LibtaskTrace, rng::Random.AbstractRNG)
65-
taped_globals = trace.model.ctask.taped_globals
66-
Libtask.set_taped_globals!(trace.model.ctask, TapedGlobals(rng, taped_globals.other))
65+
other = Libtask.get_other_global(trace.model.ctask)
66+
Libtask.set_taped_globals!(trace.model.ctask, TapedGlobals(rng, other))
6767
trace.rng = rng
6868
return trace
6969
end

0 commit comments

Comments
 (0)