Skip to content

Commit 42f33ea

Browse files
authored
Revert "initialize RNGs in sysimage process (#579)"
This reverts commit 2d8adfb.
1 parent 051fa4e commit 42f33ea

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/PackageCompiler.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function run_precompilation_script(project::String, sysimg::String, precompile_f
254254
end
255255

256256

257-
function create_sysimg_object_file(object_file::String,
257+
function create_sysimg_object_file(object_file::String,
258258
packages::Vector{String},
259259
packages_sysimg::Set{Base.PkgId};
260260
project::String,
@@ -330,13 +330,6 @@ function create_sysimg_object_file(object_file::String,
330330
if isdefined(Base, :init_active_project)
331331
Base.init_active_project()
332332
end
333-
let
334-
r = get(Base.loaded_modules, Base.PkgId(Base.UUID("9a3f8284-a2c9-5f02-9a11-845980a1fd5c"), "Random"), nothing)
335-
if r !== nothing
336-
# See e.g. https://discourse.julialang.org/t/assertionerror-0-tid-length-thread-rngs-during-compilation-with-packagecompiler/69179
337-
r.__init__()
338-
end
339-
end
340333
Base.init_depot_path()
341334
""")
342335

0 commit comments

Comments
 (0)