Commit Graph

10 Commits

Author SHA1 Message Date
Santa Zhang 17ecbaa23d add a few const qualifier 2014-06-25 07:53:23 +09:00
Nobuyoshi Nakada ab67c57f65 remove trailing spaces 2014-04-30 09:50:14 +09:00
take_cheeze bbb7ba46b2 don't use of anonymous unions 2014-03-11 22:01:00 +09:00
cubicdaiya 67de10bfcb use C style comments instead of C++ style comments
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.
2014-03-01 03:31:45 +09:00
chasonr 7c9ff7c8ff 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.
2014-02-25 00:06:31 -05:00
take_cheeze f863025bd6 use 'd' format spec to get Random object 2014-02-21 17:36:58 +09:00
cremno aa655b9ee1 remove superfluous includes
- 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)
2014-01-07 17:56:30 +01:00
MATSUMOTO Ryosuke d2c88fe850 Change mruby-random License to MIT
refs: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/license.html
2013-04-08 16:55:05 +09:00
MATSUMOTO Ryosuke 07dc11cae3 Support mt instance valiables 2013-03-27 10:39:11 +09:00
MATSUMOTO Ryosuke ab82a86da4 Add mruby-random mrbgem (no activation though) 2013-03-23 18:54:56 +09:00