diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-21 12:31:10 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-21 12:31:10 +0000 |
commit | dfe69186042b2b28e32cb66240ecae820724e430 (patch) | |
tree | ef4f09fb0765ee1b9e81fca7cb4455d4c53d3510 /benchmark | |
parent | 502f159421cf3e35b9a62ade2a7e0fa2c53a7f21 (diff) |
benchmark/app_aobench.rb: move `srand(0)` at the top
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/app_aobench.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/app_aobench.rb b/benchmark/app_aobench.rb index 5921ec70bd..b5852023ee 100644 --- a/benchmark/app_aobench.rb +++ b/benchmark/app_aobench.rb @@ -11,6 +11,8 @@ IMAGE_HEIGHT = 256 NSUBSAMPLES = 2 NAO_SAMPLES = 8 +srand(0) + class Vec def initialize(x, y, z) @x = x @@ -282,8 +284,6 @@ 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) |