From 8a294e0f20b0bf4df6528944aa4a4d5ea76b88de Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 21 Jan 2019 07:29:00 +0000 Subject: benchmark/app_aobench.rb: add `srand(0)` To prevent noise for benchmark result. Just for the case. [Bug #15552] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/app_aobench.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'benchmark/app_aobench.rb') diff --git a/benchmark/app_aobench.rb b/benchmark/app_aobench.rb index 13cbc1657d..5921ec70bd 100644 --- a/benchmark/app_aobench.rb +++ b/benchmark/app_aobench.rb @@ -282,6 +282,8 @@ alias printf_orig printf def printf *args end +srand(0) + # File.open("ao.ppm", "w") do |fp| printf("P6\n") printf("%d %d\n", IMAGE_WIDTH, IMAGE_HEIGHT) -- cgit v1.2.3