diff --git a/backend/app/cmd/server_test.go b/backend/app/cmd/server_test.go index 76c4e635..650b0600 100644 --- a/backend/app/cmd/server_test.go +++ b/backend/app/cmd/server_test.go @@ -821,8 +821,6 @@ func createAppFromCmd(t *testing.T, cmd ServerCommand) (*serverApp, context.Cont ctx, cancel := context.WithCancel(context.Background()) app, err := cmd.newServerApp(ctx) require.NoError(t, err) - - rand.Seed(time.Now().UnixNano()) return app, ctx, cancel } diff --git a/backend/app/store/service/service_test.go b/backend/app/store/service/service_test.go index 13638fc5..43574da5 100644 --- a/backend/app/store/service/service_test.go +++ b/backend/app/store/service/service_test.go @@ -413,7 +413,6 @@ func TestService_VoteAggressive(t *testing.T) { assert.Equal(t, 0, len(res[0].VotedIPs), "vote ips hidden") // random +1/-1 result should be [0..2] - rand.Seed(time.Now().UnixNano()) for i := 0; i < 100; i++ { wg.Add(1) go func() {