Skip to content

lib: update comment on Curl_rand_bytes weak random #16965

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

Closed
wants to merge 1 commit into from

Conversation

yedayak
Copy link
Contributor

@yedayak yedayak commented Apr 4, 2025

From what I understand both rustls and mbedTLS expose a strong random function, so as long as you have a TLS library random will be strong.

Followup 8972845 "vtls/rustls: support strong CSRNG data"
Followup a90a5bc "mbedtls: implement CTR-DRBG and HAVEGE random generators"

From what I understand both rustls and mbedTLS expose a strong random
function, so as long as you have a TLS library random will be strong.

Followup 8972845 "vtls/rustls: support strong CSRNG data"
Followup a90a5bc "mbedtls: implement CTR-DRBG and HAVEGE random generators"
Comment on lines +194 to +195
* If libcurl is built without TLS support or arc4random, this function will
* use "weak" random.

This comment was marked as resolved.

This comment was marked as resolved.

Comment on lines +197 to +198
* When built *with* TLS support, it will return error if it cannot provide
* strong random values.

This comment was marked as resolved.

This comment was marked as resolved.

@cpu
Copy link
Contributor

cpu commented Apr 4, 2025

LGTM!

@bagder bagder closed this in 80f9f6e Apr 4, 2025
@bagder
Copy link
Member

bagder commented Apr 4, 2025

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants