RNG-172: Support power of 2 by lowering limit by 1
authorAlex Herbert <aherbert@apache.org>
Fri, 18 Mar 2022 16:25:45 +0000 (16:25 +0000)
committerAlex Herbert <aherbert@apache.org>
Fri, 18 Mar 2022 16:25:45 +0000 (16:25 +0000)
commitfa1c8d5258f99389e37409bbe27f81f239fc2b62
treec71d390d72ebaf76228cbd69aa57f3dcf460406e
parent994616fa38039c295535f24b5242bf0a7f5b0ead
RNG-172: Support power of 2 by lowering limit by 1

This change has been made for completeness. In practice a different
sampler is used for powers of 2.
commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java