mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 09:34:39 +03:00
fix bug with concurrent math/rand.Rand.Read
firstly by using crypto/rand in those cases. and secondly by putting a lock around the Read (though it isn't used at the moment). found while working while implementing sending tls reports.
This commit is contained in:
@ -168,7 +168,7 @@ var (
|
||||
)
|
||||
)
|
||||
|
||||
var jitterRand = mox.NewRand()
|
||||
var jitterRand = mox.NewPseudoRand()
|
||||
|
||||
func durationDefault(delay *time.Duration, def time.Duration) time.Duration {
|
||||
if delay == nil {
|
||||
|
Reference in New Issue
Block a user