Skip to content

Prng64

Description

Next pseudo-random u64. Thread-safety: NOT thread-safe; callers in multi-threaded contexts need an external mutex over the sequence of calls if they want a fixed serialization order.

Success

Returns the next sample.

Failure

Aborts via LOG_FATAL on first call if the OS entropy source is unavailable (treated as a fatal system condition; no safe fallback exists).

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    u64 Prng64(void) {
        return prng_internal();
    }
Last updated on