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

No defination of random() in asn_random_fill.c #494

Open
chetanpandey1266 opened this issue Nov 28, 2023 · 2 comments
Open

No defination of random() in asn_random_fill.c #494

chetanpandey1266 opened this issue Nov 28, 2023 · 2 comments

Comments

@chetanpandey1266
Copy link

There is no definition of random used in

value = (value << 24) | (random() % 0xffffff);

@chetanpandey1266
Copy link
Author

If there is no definition then we could use rand() defined in <stdlib.h> if it serves the right purpose. @vlm What is your suggestion?

@mouse07410
Copy link

random() should be defined in <stdlib.h> too. It is on MacOS, as I just verified.

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