Skip to content

Conversation

@Yawning
Copy link
Contributor

@Yawning Yawning commented Nov 24, 2025

This switches the default random number generator to the chacha8rand CSPRNG seeded from system entropy.

This is a breaking change as the output for a given seed will be different than the previous PCG64 generator.

Changes:

Uplifting the CPUID code to runtime would allow for dynamic detection of AVX-2, but the non-bulk performance difference is not significant, so this is defered till needed.

The switch to the new RNG will be a breaking change as the outputted
sequence will change for a given seed.  This is intended for backward
compatibility purposes only.
This is extracted from the previos PR as an improved non-cryptographic
PRNG option.
While platforms that do not have an entropy source have no rights,
use something that is always guaranteed to work.
The example should run on any target, not just first class ones.
@Yawning Yawning force-pushed the feature/chacha8rand branch from 24e700a to c55eed2 Compare November 26, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant