From f73ae4ef71928dfce03975fe17f83eaddddef431 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 7 Jun 2013 16:23:24 -0700 Subject: [PATCH] builder/vmware: seed RNG --- builder/vmware/builder.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index a46c6e868..cfd271292 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -7,6 +7,7 @@ import ( "github.com/mitchellh/multistep" "github.com/mitchellh/packer/packer" "log" + "math/rand" "os" "path/filepath" "time" @@ -135,6 +136,9 @@ func (b *Builder) Prepare(raw interface{}) (err error) { } func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact { + // Seed the random number generator + rand.Seed(time.Now().UTC().UnixNano()) + steps := []multistep.Step{ &stepPrepareOutputDir{}, &stepCreateDisk{},