mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +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:
@ -61,7 +61,7 @@ var (
|
||||
)
|
||||
)
|
||||
|
||||
var jitter = mox.NewRand()
|
||||
var jitter = mox.NewPseudoRand()
|
||||
|
||||
var DBTypes = []any{Msg{}} // Types stored in DB.
|
||||
var DB *bstore.DB // Exported for making backups.
|
||||
|
Reference in New Issue
Block a user