From dfe69186042b2b28e32cb66240ecae820724e430 Mon Sep 17 00:00:00 2001 From: eregon Date: Mon, 21 Jan 2019 12:31:10 +0000 Subject: 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 --- benchmark/app_aobench.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmark') 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) -- cgit v1.2.3