Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNG-176: Enhance the UniformRandomProvider interface #111

Merged
merged 3 commits into from
May 16, 2022

Commits on May 13, 2022

  1. RNG-176: Enhance the UniformRandomProvider interface

    Add methods for streams and generation of numbers in a range. The
    methods match those implementations in JDK 17 RandomGenerator interface.
    
    Add default implementations of the existing interface methods using
    nextLong() as the source of randomness.
    aherbert committed May 13, 2022
    Configuration menu
    Copy the full SHA
    04c1c97 View commit details
    Browse the repository at this point in the history
  2. RNG-176: Update anonymous implementations of UniformRandomProvider

    Only one method is required to implement the interface. This simplifies
    creation of implementations for testing edge cases.
    
    For a delegate implementation then additional methods must be added.
    This applies to RandomSource.unrestorable.
    aherbert committed May 13, 2022
    Configuration menu
    Copy the full SHA
    d441d95 View commit details
    Browse the repository at this point in the history
  3. RNG-176: Remove redundant methods from core module

    The methods are now present as default implementations in the client-api
    UniformRandomProvider.
    
    This requires JApiCmp is disabled as it does not recognise the change as
    compatible. Binary compatibility is checked by revapi which allows this
    change.
    aherbert committed May 13, 2022
    Configuration menu
    Copy the full SHA
    f3df9db View commit details
    Browse the repository at this point in the history