diff options
| author | chasonr <[email protected]> | 2014-02-25 00:06:31 -0500 |
|---|---|---|
| committer | chasonr <[email protected]> | 2014-02-25 00:06:31 -0500 |
| commit | 7c9ff7c8ff118a1d3cdd1cae5ea9b4bbfac8cefb (patch) | |
| tree | 62d029f6fced07e4a1b1d7a820ac5bf76fbcb70d /src/mruby_core.rake | |
| parent | ebd976be842c0c16be855e7f9d7cea71a95311f0 (diff) | |
| download | mruby-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 'src/mruby_core.rake')
0 files changed, 0 insertions, 0 deletions
