diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-02-02 20:59:59 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-02-02 20:59:59 +0900 |
| commit | 571f3394f2b8ac312e0e6213c639a44cf7e29fe4 (patch) | |
| tree | 2dab89f87cf65ac1a0787caf87a5716c860a9860 /include/ruby/ruby.h | |
| parent | 8dd0d63550c4da2ba7939f371f73825caa2e932e (diff) | |
[Bug #21106] Fix tests for custom random object
When a positive integer limit is given, `rand` method of a RNG object
is expected to return a value between 0 and the limit (exclusive).
Fix shuffle_spec.rb like as the similar code in sample_spec.rb, and
add tests for greater values.
TODO:
- Return a value that is equal to or greater than the limit given to
the RNG object.
- Extract common code about RNG objects to a shared file.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12690
Diffstat (limited to 'include/ruby/ruby.h')
0 files changed, 0 insertions, 0 deletions
