Original source of `(seed * 9301 and 49297) % 233280` random algorithm?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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.

  • This is a widely used method to map random integers to floating point numbers, but it has the disadvantage of wasting 1 bit of float mantissa precision.

    On modern CPUs, its computational advantage over full-precision mapping methods, such as multiplication by a float, is not always clear [1].

    [1] https://github.com/rust-random/rand/issues/416

  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

  • On modern hardware, you should instead use a count-leading-zeroes instruction to directly generate the exponent bits from a uniform bit pattern. This is what is done in the Zig standard library:

    https://github.com/ziglang/zig/pull/10428

  • 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