Avoid overflow in RNG
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.
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.