summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-random/test/random.rb
AgeCommit message (Collapse)Author
2018-09-19Remove implicit conversion using `to_int` method.Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`. This implicit conversion often causes vulnerability. There will be no more attacks like #4120. In addition, we have added internal convenience method `__to_int` which does type check and conversion (from floats).
2016-11-23Fix segfault in Array#sampleBouke van der Bijl
2014-04-30remove trailing spacesNobuyoshi Nakada
2014-03-10reduce mrb_open calls in mrbgem testtake_cheeze
2013-11-02Added support for Random as an argument to shuffle and shuffle!. Refactored ↵Emiliano Lesende
random gem to use DATA instance type and hold mt_state inside the DATA_PTR instead of in an instance variable.
2013-11-01Added shuffle and shuffle! to the Array class in the Random gem.Emiliano Lesende
2013-03-27Add test for Random::srandMATSUMOTO Ryosuke
2013-03-27Fix test for mruby-randommattn
2013-03-27Add test for mruby-randommattn