mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +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:
@ -272,7 +272,7 @@ func RemoveEvaluationsDomain(ctx context.Context, domain dns.Domain) error {
|
||||
return err
|
||||
}
|
||||
|
||||
var jitterRand = mox.NewRand()
|
||||
var jitterRand = mox.NewPseudoRand()
|
||||
|
||||
// time to sleep until next whole hour t, replaced by tests.
|
||||
// Jitter so we don't cause load at exactly whole hours, other processes may
|
||||
|
Reference in New Issue
Block a user