xlzd / gotp

Golang OTP(One-Time Password) Library.
MIT License
475 stars 66 forks source link

Switch to golang's crypto/rand #12

Closed codewinch closed 2 years ago

codewinch commented 2 years ago

To close #3 . On a cloud server, there might be insufficient entropy available. Havaged is one option for that, but ultimately a hardware RNG would be a better option.

mergenchik commented 2 years ago

I am closing this pull request. I locally cloned your branch. Unfortunately it has some issues.

# github.com/codewitch/gotp [github.com/codewitch/gotp.test]
./utils.go:83:3: undefined: log
./utils.go:86:9: undefined: hex
FAIL    github.com/codewitch/gotp [build failed]
codewinch commented 2 years ago

need to just add import "log" and import "hex" :)