Ruby Issue Tracking System: Issueshttps://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112016-04-01T09:46:13ZRuby Issue Tracking System
Redmine Ruby master - Feature #12242 (Feedback): Is it worth adding collision probability of SecureRandom...https://redmine.ruby-lang.org/issues/122422016-04-01T09:46:13Zkgrz (Kashyap K)kashyap.kmbc@gmail.com
<p>Is it feasible and/or even useful to document the probability of<br>
collisions for the various random number generation methods in the<br>
SecureRandom module?</p>
<p>I feel having a note to read about the possibility of collisions<br>
happening for the various key lengths and generator functions might help<br>
a lot of beginners. Although there are many birthday paradox checkers<br>
online, I felt it would be a nice to have on the documentation pages<br>
directly.</p> Ruby master - Bug #10749 (Closed): Possible overflow in GC::Profiler report on 2.2.0https://redmine.ruby-lang.org/issues/107492015-01-16T20:54:58Zkgrz (Kashyap K)kashyap.kmbc@gmail.com
<p>I've been trying out the GC::Profiler module on both Ruby 2.1.0 and Ruby 2.2.0 based on the<br>
sample code present at <a href="https://rubybench.org" class="external">https://rubybench.org</a> and noticed a oddity in the output of GC::Profiler.report<br>
on Ruby 2.2.0. The code snippet I was experimenting with was the IO/File read present<br>
at <a href="https://rubybench.org/ruby/ruby/releases?result_type=io_file_read" class="external">https://rubybench.org/ruby/ruby/releases?result_type=io_file_read</a></p>
<p>The output of GC::Profiler.report has a possible overflow bug which causes it to output a really<br>
large value at some locations for that sample code and this issue is reproducible if the same<br>
code is run. I've posted the sample code and the report results for both Ruby 2.1.0 and Ruby 2.2.0<br>
at this link: <a href="https://github.com/kgrz/gc_profiles" class="external">https://github.com/kgrz/gc_profiles</a></p>
<p>Notice the "Use Size" value's output in Ruby 2.2.0 for two runs:</p>
<p>Run 1: <a href="https://github.com/kgrz/gc_profiles/blob/master/2.2.0-read.txt" class="external">https://github.com/kgrz/gc_profiles/blob/master/2.2.0-read.txt</a><br>
Run 2: <a href="https://github.com/kgrz/gc_profiles/blob/master/2.2.0-read-run-two.txt" class="external">https://github.com/kgrz/gc_profiles/blob/master/2.2.0-read-run-two.txt</a></p>