summaryrefslogtreecommitdiff
path: root/benchmark/app_aobench.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-21 07:29:00 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-21 07:29:00 +0000
commit8a294e0f20b0bf4df6528944aa4a4d5ea76b88de (patch)
treed700684b2bc3c941c8e439c58cd409c792e4c37d /benchmark/app_aobench.rb
parentbe3a0c7042583922befae8a11f08159607b28df9 (diff)
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
Diffstat (limited to 'benchmark/app_aobench.rb')
-rw-r--r--benchmark/app_aobench.rb2
1 files changed, 2 insertions, 0 deletions
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)