Skip to content

Commit

Permalink
update rand usage
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcrypto committed Oct 18, 2024
1 parent 0a09191 commit 01716f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/miner/cpuworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func (w *CPUWorker) solveBlock() *types.Block {
default:
// Non-blocking select to fall through
}
rand.Seed(time.Now().UnixNano())
rand.New(rand.NewSource(time.Now().UnixNano()))
i := rand.Uint64()
instance := pow.GetInstance(w.miner.powType, 0, []byte{})
instance.SetNonce(uint64(i))
Expand Down

0 comments on commit 01716f2

Please sign in to comment.