Skip to content

Commit

Permalink
Merge pull request #124 from jemeraldo/patch-1
Browse files Browse the repository at this point in the history
Update seed.go
  • Loading branch information
xssnick authored Jun 26, 2023
2 parents 43ee8f9 + 944ccb1 commit d9f8c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ton/wallet/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d9f8c2c

Please sign in to comment.