Skip to content

Commit

Permalink
Seed the random number generator so it doesn't test in the same order…
Browse files Browse the repository at this point in the history
… each time
  • Loading branch information
ncw committed Nov 24, 2012
1 parent 3182cae commit a67752c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stressdisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ func main() {
args := flag.Args()
stats = NewStats()
runtime.GOMAXPROCS(3)
rand.Seed(time.Now().UnixNano())

// Setup profiling if desired
if *cpuprofile != "" {
Expand Down

0 comments on commit a67752c

Please sign in to comment.