Skip to content

Commit

Permalink
move Base.random.__init__ to zero-arg srand(); fixes #8313
Browse files Browse the repository at this point in the history
  • Loading branch information
davidssmith committed Sep 12, 2014
1 parent 9176b3d commit 7be11df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/random.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ end

## initialization

function __init__()
function srand()

@unix_only begin
try
Expand All @@ -55,6 +55,8 @@ end
end
end

__init__() = srand()

## srand()

function srand(seed::Vector{Uint32})
Expand Down

0 comments on commit 7be11df

Please sign in to comment.