mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 12:07:54 +00:00
Seed the random generator
This commit is contained in:
@@ -2,10 +2,16 @@ package api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"math/rand"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// Seed the random generator
|
||||||
|
rand.Seed(time.Now().Unix())
|
||||||
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrRenewerMissingInput = errors.New("missing input to renewer")
|
ErrRenewerMissingInput = errors.New("missing input to renewer")
|
||||||
ErrRenewerMissingSecret = errors.New("missing secret to renew")
|
ErrRenewerMissingSecret = errors.New("missing secret to renew")
|
||||||
|
|||||||
Reference in New Issue
Block a user