1 repositorio
Converts raw random bytes into unbiased integers within arbitrary ranges using rejection sampling to avoid modulo bias.
Distinct from Integer: Distinct from Integer audio processing: focuses on cryptographic integer scaling via rejection sampling, not audio signal processing in integer format.
Explore 1 awesome GitHub repository matching graphics & multimedia · Cryptographic Integer Scaling. Refine with filters or upvote what's useful.
randomcompat is a backward-compatibility library that provides cryptographically secure random number generation functions for PHP 5.x environments. It delivers the randombytes() and random_int() functions that are natively available in PHP 7+, enabling legacy applications to generate secure random bytes and unbiased integers from system entropy sources. The library implements a priority-based fallback chain across operating-system CSPRNGs, selecting the best available random source in order of security. It uses rejection sampling to convert raw random bytes into unbiased integers withi
Converts raw random bytes into unbiased integers within arbitrary ranges using rejection sampling.