1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
mame 2019-01-21 07:29:00 +00:00
parent be3a0c7042
commit 8a294e0f20

View file

@ -282,6 +282,8 @@ alias printf_orig printf
def printf *args def printf *args
end end
srand(0)
# File.open("ao.ppm", "w") do |fp| # File.open("ao.ppm", "w") do |fp|
printf("P6\n") printf("P6\n")
printf("%d %d\n", IMAGE_WIDTH, IMAGE_HEIGHT) printf("%d %d\n", IMAGE_WIDTH, IMAGE_HEIGHT)