Skip to content

Commit

Permalink
fix rand seed
Browse files Browse the repository at this point in the history
  • Loading branch information
1griffy committed May 1, 2023
1 parent e814aaf commit 2f3c223
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/drand/drand/crypto"
bls "github.com/drand/kyber-bls12381"
"github.com/stretchr/testify/require"
"math/rand"
"os"
"strings"
"testing"
Expand Down Expand Up @@ -113,7 +112,6 @@ func TestEncryptionWithTimestamp(t *testing.T) {
var cipherData bytes.Buffer

// Timestamp to duration
rand.Seed(time.Now().UnixNano())
timestamp := time.Now().Add(4 * time.Second).Format(time.RFC3339)
tstamp, err := time.Parse(time.RFC3339, timestamp)
require.NoError(t, err)
Expand Down

0 comments on commit 2f3c223

Please sign in to comment.