Skip to content

Commit df8432b

Browse files
committed
Remove no longer necessary random init.
Ref: https://pkg.go.dev/math/rand#Seed Signed-off-by: Felix Fontein <felix@fontein.de>
1 parent dff373e commit df8432b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

shamir/shamir.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"crypto/subtle"
1616
"fmt"
1717
mathrand "math/rand"
18-
"time"
1918
)
2019

2120
const (
@@ -190,7 +189,6 @@ func Split(secret []byte, parts, threshold int) ([][]byte, error) {
190189
// a non-cryptographically secure source of randomness is used.
191190
// As far as I know the x coordinates do not need to be random.
192191

193-
mathrand.Seed(time.Now().UnixNano())
194192
xCoordinates := mathrand.Perm(255)
195193

196194
// Allocate the output array, initialize the final byte

0 commit comments

Comments
 (0)