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

Rust

8248 readers
13 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
top 3 comments
sorted by: hot top controversial new old
[–] BB_C@programming.dev 2 points 3 weeks 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 3 weeks ago (1 children)

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

[–] BB_C@programming.dev 1 points 3 weeks 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.