diff options
author | Zbigniew Kostrzewa <kostrzewa@9livesdata.com> | 2017-06-15 13:17:02 +0200 |
---|---|---|
committer | localghost <zkostrzewa@gmail.com> | 2017-06-15 22:11:59 +0200 |
commit | 6df6c15e5e465dc342169bad858262fb2eeb0f30 (patch) | |
tree | 89517521da0508f85f2b6a537a710b80abd9e64d /main.go | |
parent | 919ee121eb8230f479d72ebd1fe527f532c1de48 (diff) | |
download | terraform-provider-libvirt-6df6c15e5e465dc342169bad858262fb2eeb0f30.tar terraform-provider-libvirt-6df6c15e5e465dc342169bad858262fb2eeb0f30.tar.gz |
Seed RNG with current time.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,8 @@ package main import ( "github.com/dmacvicar/terraform-provider-libvirt/libvirt" "github.com/hashicorp/terraform/plugin" + "math/rand" + "time" ) func main() { @@ -10,3 +12,7 @@ func main() { ProviderFunc: libvirt.Provider, }) } + +func init() { + rand.Seed(time.Now().UTC().UnixNano()) +} |