Skip to content

Unify lazy atomics in entropy backends#1

Closed
tamird wants to merge 1 commit into
masterfrom
cleanup-atomics
Closed

Unify lazy atomics in entropy backends#1
tamird wants to merge 1 commit into
masterfrom
cleanup-atomics

Conversation

@tamird
Copy link
Copy Markdown
Owner

@tamird tamird commented Feb 3, 2026

Replace ad-hoc atomic lazy caches with shared lazy helpers in the Linux/Android fallback, NetBSD, RDRAND, and RNDR backends. Add LazyPtr alongside LazyUsize and LazyBool so pointer and boolean caches use the same initialization contract.

This reduces duplicated cache logic and keeps backend probing/fallback semantics aligned while preserving the existing retry-until-cached behavior.

CI?

@tamird tamird force-pushed the cleanup-atomics branch 11 times, most recently from 82c39d9 to 7ad436c Compare February 4, 2026 16:16
Replace ad-hoc atomic lazy caches with shared lazy helpers in the
Linux/Android fallback, NetBSD, RDRAND, and RNDR backends. Add `LazyPtr`
alongside `LazyUsize` and `LazyBool` so pointer and boolean caches use
the same initialization contract.

This reduces duplicated cache logic and keeps backend probing/fallback
semantics aligned while preserving the existing retry-until-cached
behavior.
@tamird tamird closed this Feb 4, 2026
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