Skip to content

Avoid overflow in RNG

Kevin Boyd requested to merge kevinboyd-rng-overflow-fix into master

Instead of checking for overflow, get necessary information about number of bits from type attributes.

This technically wasn't undefined behavior but with strict UBSAN settings got tagged in tests.

Merge request reports