summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-random/test
AgeCommit message (Collapse)Author
2021-10-31Added `Random.#bytes` methoddearblue
ref: https://docs.ruby-lang.org/ja/3.0.0/method/Random/i/bytes.html
2021-04-24Skip tests that use `Float` inside; ref #5421Yukihiro "Matz" Matsumoto
2020-10-12Integrate `Fixnum` class into `Integer` classdearblue
* The `Fixnum` constant is now an alias for the `Integer` class. * Remove `struct mrb_state::fixnum_class` member. If necessary, use `struct mrb_state::integer_class` instead.
2019-04-17Add `Array#sample` testKOBAYASHI Shuji
And simplify tests for `Array#shuffle` and `Array#shuffle!`.
2019-04-15Fix missing assertions in `mruby-random` testKOBAYASHI Shuji
2018-11-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