Browse Source

Simplify getSeed function a little bit

xno
codesoap 1 year ago
parent
commit
fff6dcd695
  1. 3
      util.go

3
util.go

@ -2,7 +2,6 @@ package main @@ -2,7 +2,6 @@ package main
import (
"bufio"
"errors"
"fmt"
"io/ioutil"
"math/big"
@ -21,7 +20,7 @@ func getSeed() (*big.Int, error) { @@ -21,7 +20,7 @@ func getSeed() (*big.Int, error) {
}
seed, ok := big.NewInt(0).SetString(strings.TrimSpace(firstLine), 16)
if !ok {
return seed, errors.New("could not parse seed")
return nil, fmt.Errorf("could not parse seed")
}
return seed, nil
}

Loading…
Cancel
Save