Skip to content

Conversation

@medeirosdev
Copy link
Owner

Summary

This PR introduces Hybrid Mode, a new operation mode that combines the security of true entropy with the performance of pseudo-random number generators (PRNGs).

Motivation

While TrueEntropy provides cryptographically secure random numbers from real-world entropy sources, direct pool extraction is inherently slow (~60K ops/sec) due to:

SHA-256 hashing overhead
Thread synchronization
Pool depletion checks
Many use cases (simulations, games, UI effects) need millions of random numbers per second without requiring cryptographic-grade randomness for every single value.

@medeirosdev medeirosdev merged commit 8a328d5 into main Dec 28, 2025
2 of 14 checks passed
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.

2 participants