summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorchasonr <[email protected]>2014-02-25 00:06:31 -0500
committerchasonr <[email protected]>2014-02-25 00:06:31 -0500
commit7c9ff7c8ff118a1d3cdd1cae5ea9b4bbfac8cefb (patch)
tree62d029f6fced07e4a1b1d7a820ac5bf76fbcb70d /include
parentebd976be842c0c16be855e7f9d7cea71a95311f0 (diff)
downloadmruby-7c9ff7c8ff118a1d3cdd1cae5ea9b4bbfac8cefb.tar.gz
mruby-7c9ff7c8ff118a1d3cdd1cae5ea9b4bbfac8cefb.zip
Implement default Random instance.
Previously, the default random number generator was implemented using static storage. This storage is common to all instances of mruby in a process, and use of the default random number generator in one instance will perturb the default random number generator in other instances. It is also not thread safe. With this change, the default random number generator is defined as Random::DEFAULT, as it is in CRuby.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions