ruby-changes:54677
From: mame <ko1@a...>
Date: Mon, 21 Jan 2019 16:29:04 +0900 (JST)
Subject: [ruby-changes:54677] mame:r66893 (trunk): benchmark/app_aobench.rb: add `srand(0)`
mame 2019-01-21 16:29:00 +0900 (Mon, 21 Jan 2019) New Revision: 66893 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66893 Log: benchmark/app_aobench.rb: add `srand(0)` To prevent noise for benchmark result. Just for the case. [Bug #15552] Modified files: trunk/benchmark/app_aobench.rb Index: benchmark/app_aobench.rb =================================================================== --- benchmark/app_aobench.rb (revision 66892) +++ benchmark/app_aobench.rb (revision 66893) @@ -282,6 +282,8 @@ alias printf_orig printf https://github.com/ruby/ruby/blob/trunk/benchmark/app_aobench.rb#L282 def printf *args end +srand(0) + # File.open("ao.ppm", "w") do |fp| printf("P6\n") printf("%d %d\n", IMAGE_WIDTH, IMAGE_HEIGHT) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/