Commit f1be1fdb authored by Sune Keller's avatar Sune Keller 🐳

Seed in main()

Signed-off-by: Sune Keller's avatarSune Keller <sune.keller@gmail.com>
parent df8d8fe1
Pipeline #59036476 passed with stages
in 9 minutes and 1 second
......@@ -9,10 +9,6 @@ import (
"github.com/dustinkirkland/golang-petname"
)
func init() {
rand.Seed(time.Now().UTC().UnixNano())
}
type SecretPetsDriver struct {
}
......@@ -25,6 +21,7 @@ func (p SecretPetsDriver) Get(req secrets.Request) secrets.Response {
}
func main() {
rand.Seed(time.Now().UTC().UnixNano())
d := SecretPetsDriver{}
h := secrets.NewHandler(d)
h.ServeUnix("plugin", 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment