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

Add bindings for RAND_seed() and RAND_add() to reseed random generator #2232

Open
Coconop opened this issue May 2, 2024 · 2 comments
Open

Comments

@Coconop
Copy link

Coconop commented May 2, 2024

When underlying system entropy source is not good enough, it is common practice to add/mix it with your own entropy source.
The C library provides API (also cf associated doc) for this purpose but the current Rust wrapper does not.

Is it possible to add Rust bindings to to RAND_add() and RAND_seed() ?

@Skepfyr
Copy link
Collaborator

Skepfyr commented May 7, 2024

It looks like these function do internal locking, which means that it's plausible we could implement them safely. I will warn you that it's unlikely anyone else will add these functions, if you want them then you'll probably have to write the PR yourself.

@Coconop
Copy link
Author

Coconop commented May 10, 2024

Thanks for the reply. I'm kinda new to Rust so I'll probably wait a bit before contributing to this project.

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