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

Conversation

aherbert
Copy link
Contributor

No description provided.

@lgtm-com
Copy link

lgtm-com bot commented May 11, 2022

This pull request introduces 1 alert when merging 76dfcb7 into 22bba87 - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable may be null

@coveralls
Copy link

coveralls commented May 12, 2022

Coverage Status

Coverage increased (+0.005%) to 99.789% when pulling f3df9db on aherbert:feature-RNG-176 into c285f7d on apache:master.

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.
@lgtm-com
Copy link

lgtm-com bot commented May 13, 2022

This pull request introduces 1 alert when merging 9c264dd into c285f7d - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable may be null

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.
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.
@lgtm-com
Copy link

lgtm-com bot commented May 13, 2022

This pull request introduces 1 alert when merging f3df9db into c285f7d - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable may be null

@asfgit asfgit merged commit f3df9db into apache:master May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants