Skip to content

Commit

Permalink
seed explicitly MersenneTwister(0) (#525)
Browse files Browse the repository at this point in the history
* seed explicitly MersenneTwister(0)

* randomize internal RNG seed
  • Loading branch information
rfourquet authored and stevengj committed Apr 4, 2017
1 parent 012e94b commit 843fdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include(depfile) # generated by Pkg.build("IJulia")

# use our own random seed for msg_id so that we
# don't alter the user-visible random state (issue #336)
const IJulia_RNG = MersenneTwister()
const IJulia_RNG = srand(MersenneTwister(0))
uuid4() = repr(Base.Random.uuid4(IJulia_RNG))

const orig_STDIN = Ref{IO}()
Expand Down

0 comments on commit 843fdb0

Please sign in to comment.