Skip to content

Commit b88e708

Browse files
authored
Merge pull request #126 from KristofferC/kc/shuffle_init
shuffle animals in init
2 parents 829a861 + 5343acc commit b88e708

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/MacroTools.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const animals_file = joinpath(@__DIR__, "..", "animals.txt")
3232
_animals = split(read(animals_file, String))
3333
resize!(animals, length(_animals))
3434
animals .= Symbol.(lowercase.(_animals))
35-
Compat.Random.shuffle!(animals)
35+
36+
function __init__()
37+
Compat.Random.shuffle!(animals)
38+
end
3639

3740
end # module

0 commit comments

Comments
 (0)