Blog Post: On Random Numbers

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • rand

    A Rust library for random number generation.

  • Defining an error type that is meaningful, portable, and compatible with no-std isn't straightforward. If the std lib's getrandom requires std, then just like that, rand and many other crates won't use it anyway. Using io::Result seems to me to face this challenge.

  • rust

    Empowering everyone to build reliable and efficient software.

  • Time in libstd is a great example of why exposing resources carelessly in libstd is a problem. Between SystemTime and Instant a choice is presented between "wall clock, but not monotonic" and "arbitrary, but monotonic". But then the first progresses while the computer is asleep and the 2nd doesn’t …depending where the code runs. And some people do expect it to or assumed it would, it turns out. So now the options are adding SystemTimeButDoesn’tTickDuringSleep and InstantButTicksDuringSleep, changing the behaviour of one of them breaking users documenting it in big letters and somebody will miss that anyway, or maybe something else.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts