Landing: d90aac09963b
Project / Subsystem
gcc / libstdc++
Date
2026-07-21
Author
Tomasz Kamiński
Commit
d90aac09963b235b34d08cc7485eea0d90b32ae8
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- d90aac09963b235b34d08cc7485eea0d90b32ae8
- source_type
- public_inbox
- headline
- Support large generators in generate_canonical
- tldr
- libstdc++'s generate_canonical now supports generators producing more than 128 bits of entropy.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • random
- • generator
- • canonical
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-21T00:00:00.000Z
The libstdc++ generate_canonical function now supports generators that produce more than 128 bits of entropy. Previously, generators requiring computations that could overflow 128 bits were unsupported. This change implements a method to handle such cases by checking for potential overflows and rejecting values early, ensuring correctness even for generators with very large outputs.