Skip to content

Commit 070ef3f

Browse files
committed
fixup! fixup! Excise Random from the system image
1 parent ec8c2d4 commit 070ef3f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

base/stubs.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ module Random
1313
end
1414
end
1515

16-
function Base.rand(args...)
16+
import Base: rand, randn
17+
function rand(args...)
1718
Base.invoke_in_world(delay_initialize(), rand, args...)
1819
end
1920

20-
function Base.randn(args...)
21-
Base.invoke_in_world(delay_initialize(), rand, args...)
21+
function randn(args...)
22+
Base.invoke_in_world(delay_initialize(), randn, args...)
2223
end
2324
end
2425

2526
function delete_stubs(mod)
26-
for name in names(mod)
27+
for name in names(mod, imported=true)
2728
if name == :delay_initialize
2829
continue
2930
end

0 commit comments

Comments
 (0)