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

能否实现一个 php 的 random_bytes #72

Open
chenxi2015 opened this issue Apr 27, 2022 · 3 comments
Open

能否实现一个 php 的 random_bytes #72

chenxi2015 opened this issue Apr 27, 2022 · 3 comments

Comments

@chenxi2015
Copy link

No description provided.

@awesee
Copy link
Owner

awesee commented Apr 27, 2022

@chenxi2015 random_bytes?A: RandomBytes

@chenxi2015
Copy link
Author

这个 random_bytes 的方法 跟php的函数实现的不一样,这个不随机

@chenxi2015 chenxi2015 changed the title 能否实现一个 php 的 random_types 能否实现一个 php 的 random_bytes Apr 27, 2022
@awesee
Copy link
Owner

awesee commented Apr 28, 2022

@chenxi2015 你认真测一下,随机的。注意是 crypto/rand.Read() 不是 math/rand.Read()

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