mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
502f159421
commit
dfe6918604
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue