diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-12 13:45:32 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-12 13:45:32 +0900 |
commit | eb21e8add346854aa93299bf767f119439f74f7a (patch) | |
tree | dba824240163cd8124194233fcbbe658104e1875 /ractor.rb | |
parent | 8a39e6d6539bd37100cbbfb88916b853f444f771 (diff) |
bignum.c (bary_sparse_p): do not comsume Random::DEFAULT
It uses random to determine if the bignum is sparse or not.
It is arguable if three-digit samples are enough or not to determine it,
but anyway, consuming Random source implicitly is not good.
I introduced the random sampling mechanism, and I don't know any
significant reason to do so. So, let's remove it.
This change makes the sampling points fixed: 40th, 50th, and 60th
percentiles.
Diffstat (limited to 'ractor.rb')
0 files changed, 0 insertions, 0 deletions