| Age | Commit message (Collapse) | Author |
|
Now `rand` can be used with `MRB_WITHOUT_FLOAT`; ref #4576
|
|
|
|
|
|
|
|
despite the fact original authors agreed to distribute their work
under MIT license, it does not mean mt19937ar.[ch] became the work
of mruby developers. To clarify, we updated copyright and license
notice of the source files.
|
|
|
|
|
|
|
|
|
|
According to CONTRIBUTING.md,
Don't use C++ style comments
/* This is the prefered comment style */
Use C++ style comments only for temporary comment e.g. commenting out some code lines.
|
|
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.
|
|
|
|
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
|
|
refs: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/license.html
|
|
|
|
|