From: Sergey Matveev Date: Sat, 5 Oct 2019 07:58:02 +0000 (+0300) Subject: Reduce lines number, simplify code X-Git-Tag: v1.1.0~6 X-Git-Url: http://www.git.cypherpunks.ru/?p=balloon.git;a=commitdiff_plain;h=4f1dc22094b47918942b4407b52c5be38c139e6f;ds=sidebyside Reduce lines number, simplify code --- diff --git a/cmd/balloon/main.go b/cmd/balloon/main.go index 8283a53..91fddc2 100644 --- a/cmd/balloon/main.go +++ b/cmd/balloon/main.go @@ -9,15 +9,12 @@ import ( "cypherpunks.ru/balloon" ) -var ( - s = flag.Int("s", 1<<18, "Space cost, number of hash-sized blocks") - t = flag.Int("t", 2, "Time cost, rounds") - p = flag.Int("p", 4, "Number of threads") - saltHex = flag.String("salt", "deadbabe", "Salt, hexadecimal") - passwd = flag.String("passwd", "", "Password") -) - func main() { + s := flag.Int("s", 1<<18, "Space cost, number of hash-sized blocks") + t := flag.Int("t", 2, "Time cost, rounds") + p := flag.Int("p", 4, "Number of threads") + saltHex := flag.String("salt", "deadbabe", "Salt, hexadecimal") + passwd := flag.String("passwd", "", "Password") flag.Parse() salt, err := hex.DecodeString(*saltHex) if err != nil {