Skip to content

Commit

Permalink
Quick fix to add random rseed if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
lologarithm committed Sep 3, 2021
1 parent afc06b6 commit 6ce5162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tbc/sim.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ func NewSim(equipSpec EquipmentSpec, options Options) *Simulation {
if options.GCDMin == 0 {
options.GCDMin = 0.75 // default to 0.75s GCD
}

if options.RSeed == 0 {
options.RSeed = time.Now().Unix()
}
equip := NewEquipmentSet(equipSpec)
initialStats := CalculateTotalStats(options, equip)

Expand Down
Binary file modified ui/lib.wasm
Binary file not shown.

0 comments on commit 6ce5162

Please sign in to comment.