Skip to content

Commit

Permalink
Merge pull request #8320 from davidssmith/srand
Browse files Browse the repository at this point in the history
move Base.random.__init__ to zero-arg srand(); fixes #8313
  • Loading branch information
ivarne committed Sep 12, 2014
2 parents 13da365 + 7be11df commit eafda24
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 eafda24

Please sign in to comment.