From 39c2194c077b68d7dd6e110c7b3a2731f6a685d3 Mon Sep 17 00:00:00 2001 From: cdamian <17934949+cdamian@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:51:14 +0100 Subject: [PATCH] bootstrap: Set rand seed --- bootstrap/bootstrappers/integration_test/test_bootstrapper.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap/bootstrappers/integration_test/test_bootstrapper.go b/bootstrap/bootstrappers/integration_test/test_bootstrapper.go index 6491745ba..bcce6fe69 100644 --- a/bootstrap/bootstrappers/integration_test/test_bootstrapper.go +++ b/bootstrap/bootstrappers/integration_test/test_bootstrapper.go @@ -5,6 +5,7 @@ package integration_test import ( "context" "fmt" + "math/rand" "os" "os/exec" "time" @@ -21,6 +22,8 @@ var ( type Bootstrapper struct{} func (b *Bootstrapper) TestBootstrap(_ map[string]any) error { + rand.Seed(time.Now().Unix()) + if err := os.Chdir(path.ProjectRoot); err != nil { log.Errorf("Couldn't change path to project root: %s", err)