Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成secret key没有随机性 #2

Open
fghwett opened this issue Jul 2, 2020 · 1 comment
Open

生成secret key没有随机性 #2

fghwett opened this issue Jul 2, 2020 · 1 comment

Comments

@fghwett
Copy link

fghwett commented Jul 2, 2020

需要在调用生成secret key方法前添加rand.Seed(time.Now().UnixNano()),才会生成随机密钥。

@4color
Copy link

4color commented Feb 10, 2021

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants