this post was submitted on 31 Jul 2026
4 points (100.0% liked)

Rust

8199 readers
14 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BB_C@programming.dev 2 points 1 week ago (1 children)

Ctrl-F fastrand (0 results)

I had to stop reading very early. Sorry, but if you're going to do this topic, at least acknowledge the other very popular randomness crate, and argue why it wasn't good enough for what you wanted.

[–] SorteKanin@feddit.dk 1 points 1 week ago (1 children)

Isn't it pretty obvious? Fastrand is not cryptographically secure, urandom provides that option.

[–] BB_C@programming.dev 1 points 1 week ago

Fastrand is not cryptographically secure

That's not relevant when it's a question of interface.

fastrand has a single Rng struct that drives everything else. Was the option to replace the implementation details of this struct explored? No idea.