Skip to content

Commit

Permalink
bootstrap: Set rand seed
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Dec 13, 2023
1 parent 341e424 commit 39c2194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootstrap/bootstrappers/integration_test/test_bootstrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package integration_test
import (
"context"
"fmt"
"math/rand"
"os"
"os/exec"
"time"
Expand All @@ -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)

Expand Down

0 comments on commit 39c2194

Please sign in to comment.