Seed the random generator

This commit is contained in:
Seth Vargo
2017-06-26 16:21:58 -05:00
parent 47260ed024
commit a8fe164694

View File

@@ -2,10 +2,16 @@ package api
import (
"errors"
"math/rand"
"sync"
"time"
)
func init() {
// Seed the random generator
rand.Seed(time.Now().Unix())
}
var (
ErrRenewerMissingInput = errors.New("missing input to renewer")
ErrRenewerMissingSecret = errors.New("missing secret to renew")