From 944ccb1871484b212844f0197fb895718ed5e95e Mon Sep 17 00:00:00 2001 From: jemeraldo Date: Sun, 25 Jun 2023 23:12:57 +0300 Subject: [PATCH] Update seed.go Oops --- ton/wallet/seed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ton/wallet/seed.go b/ton/wallet/seed.go index 4c42e4b5..298dcd3f 100644 --- a/ton/wallet/seed.go +++ b/ton/wallet/seed.go @@ -29,7 +29,7 @@ func NewSeedWithPassword(password string) []string { seed := make([]string, 24) for i := 0; i < 24; i++ { for { - x, err := rand.Int(rand.Reader, big.NewInt(int64(len(seed)))) + x, err := rand.Int(rand.Reader, big.NewInt(int64(len(words)))) if err != nil { continue }