Skip to content

Conversation

@RaimoNiskanen
Copy link
Contributor

This PR improves the documentation to clarify how to use the crypto plug-in generator(s) in rand in a safe manner.

While at it I also (hopefully) improved the overview section in the rand documentation a bit.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

CT Test Results

    3 files    100 suites   1h 11m 59s ⏱️
2 308 tests 2 243 ✅  65 💤 0 ❌
2 969 runs  2 774 ✅ 195 💤 0 ❌

Results for commit 68c0064.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@RaimoNiskanen RaimoNiskanen requested a review from dgud November 3, 2025 17:14
@RaimoNiskanen
Copy link
Contributor Author

Updated after feedback. Thank you all!

I also changed the module doc examples to be parsed and test run in our test suites.

@RaimoNiskanen
Copy link
Contributor Author

Moved all the rand functions to a dedicated documentation group, and rephrased the deprecation reason for `crypto:rand_uniform/2.

@RaimoNiskanen
Copy link
Contributor Author

Changed track a bit to exporting and documenting crypto:strong_rand_range/1, and point the deprecation of crypto:rand_uniform/2 to it instead.

All other improvements remain.

@RaimoNiskanen RaimoNiskanen changed the title Improve rand + crypto interaction documentation Improve the deprecation of crypto:rand_uniform/2 Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants