Skip to content

Commit e071bb9

Browse files
committed
Set seed
Let's the benchmark be more deterministic
1 parent 3215b69 commit e071bb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/benchmark

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ require "wave_function_collapse"
1010
WIDTH = 20
1111
HEIGHT = 20
1212

13+
srand(WIDTH * HEIGHT)
14+
1315
json = JSON.load_file!("assets/map.tsj")
1416
tiles =
1517
json["wangsets"].last["wangtiles"].map do |tile|

0 commit comments

Comments
 (0)