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

8248862: Implement Enhanced Pseudo-Random Number Generators #1292

Closed
wants to merge 78 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
7aaf2b7
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 9, 2020
352da50
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 13, 2020
1f0a80e
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 14, 2020
4c60ec1
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 15, 2020
b269ec5
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 15, 2020
fa9c351
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 20, 2020
cfcd496
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 20, 2020
48e1805
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 21, 2020
24efec6
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 26, 2020
552b37b
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 26, 2020
0eefbcb
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 26, 2020
525b8fb
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 26, 2020
aa0524f
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 27, 2020
a3905a7
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 28, 2020
8e59a5d
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Oct 28, 2020
ca2b0df
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 5, 2020
9b2d47e
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 6, 2020
6863fca
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 9, 2020
ad5df49
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 12, 2020
f32d79c
8248862; Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 13, 2020
0483d1a
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 13, 2020
cd7b1c5
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 16, 2020
27f5285
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 17, 2020
e134531
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 17, 2020
2b3e4ed
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 17, 2020
9d6d1a9
Review changes
JimLaskey Nov 23, 2020
802fa53
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 25, 2020
f55615f
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 25, 2020
ee8f87c
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 25, 2020
a685194
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 26, 2020
ca29ff7
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 26, 2020
a8cc079
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 26, 2020
f7b697e
8248862: Implement Enhanced Pseudo-Random Number Generators
JimLaskey Nov 27, 2020
e75cc84
Merge branch 'master' into 8248862
JimLaskey Jan 4, 2021
7a6993f
Introduce RandomGeneratorProperties annotation
JimLaskey Jan 5, 2021
680aaa9
Merge branch 'master' into 8248862
JimLaskey Jan 5, 2021
da9fec1
Use annotation for properties. Add getDefault().
JimLaskey Jan 5, 2021
cb78fa1
Merge branch 'master' into 8248862
JimLaskey Jan 6, 2021
f76fa7a
Correct range used by nextBytes
JimLaskey Jan 6, 2021
772abef
Merge branch 'master' into 8248862
JimLaskey Jan 18, 2021
3836970
Update package info to credit LMX algorithm
JimLaskey Jan 18, 2021
8a570a8
Updated API based on CSR review.
JimLaskey Feb 3, 2021
96f9876
Update SplittableRandom to remove unnecessary overrides
JimLaskey Feb 3, 2021
1c17ad3
Merge branch 'master' into 8248862
JimLaskey Feb 4, 2021
f1e3699
Added table of available algorithms.
JimLaskey Feb 11, 2021
339a1af
Add review edits
JimLaskey Feb 17, 2021
f6f7e14
Flatten out use of all()
JimLaskey Feb 17, 2021
16f066f
Merge branch 'master' into 8248862
JimLaskey Feb 17, 2021
cbb70f5
Update tests for RandomGeneratorFactory.all()
JimLaskey Feb 18, 2021
7d0ebfc
Merge branch 'master' into 8248862
JimLaskey Feb 18, 2021
9861b4e
Correct copyright notice.
JimLaskey Feb 18, 2021
cfaf7ce
Remove tabs from random/package-info.java
JimLaskey Feb 19, 2021
61f5d70
Revised javadoc per CSR reviews
JimLaskey Feb 22, 2021
eeab645
Various corrects
JimLaskey Feb 23, 2021
58a05f4
L32X64StarStarRandom -> L32X64MixRandom
JimLaskey Feb 23, 2021
9f917dc
Adjust ThreadLocalRandom javadoc inheritence
JimLaskey Feb 23, 2021
b909427
Merge branch 'master' into 8248862
JimLaskey Feb 23, 2021
99e92dd
Update javadoc
JimLaskey Mar 1, 2021
7439c2b
Introduce isDeprecated
JimLaskey Mar 2, 2021
345a17c
Use isAnnotationPresent
JimLaskey Mar 3, 2021
5e9cc13
Remove conflicts
JimLaskey Mar 11, 2021
be5d530
Merge branch 'master' into 8248862
JimLaskey Mar 11, 2021
e5b8722
Review requested changes
JimLaskey Mar 12, 2021
ddb1a30
Review revisions
JimLaskey Mar 14, 2021
9d05aa5
Missing @since
JimLaskey Mar 15, 2021
ff8e949
Review revisions
JimLaskey Mar 18, 2021
63094f9
Merge branch 'master' into 8248862
JimLaskey Mar 18, 2021
5e98d91
Cleaned up ints(), longs(), doubles()
JimLaskey Mar 22, 2021
5ffe4f3
Clarify all()
JimLaskey Mar 22, 2021
4562dd1
RandomGeneratorFactory::all(Class<T> category) @implNote was out of date
JimLaskey Mar 22, 2021
22ea21d
Removed @since from nextDouble ThreadLocalRandom
JimLaskey Mar 23, 2021
be9536c
CSR review updates
JimLaskey Mar 25, 2021
84cc93f
CSR review revisions
JimLaskey Mar 26, 2021
3de4264
Merge branch 'master' into 8248862
JimLaskey Mar 30, 2021
0aa49ed
Correct return type of RandomGeneratorFactory.of
JimLaskey Mar 30, 2021
5a23b4f
Merge branch 'master' into 8248862
JimLaskey Apr 1, 2021
c5fb77f
Fix NotCompliantCauseTest to not rely on Random not being a bean
JimLaskey Apr 1, 2021
ffd982b
Merge branch 'master' into 8248862
JimLaskey Apr 5, 2021
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -342,16 +342,19 @@ private void ensureConstructors() {
*
* @param name Name of random number generator
* <a href="package-summary.html#algorithms">algorithm</a>
* @param <T> Sub-interface of {@link RandomGenerator} to produce
*
* @return {@link RandomGeneratorFactory} of {@link RandomGenerator}
*
* @throws NullPointerException if name is null
* @throws IllegalArgumentException if the named algorithm is not found
*/
public static RandomGeneratorFactory<RandomGenerator> of(String name) {
public static <T extends RandomGenerator> RandomGeneratorFactory<T> of(String name) {
Objects.requireNonNull(name);

return factoryOf(name, RandomGenerator.class);
@SuppressWarnings("unchecked")
RandomGeneratorFactory<T> factory =
(RandomGeneratorFactory<T>)factoryOf(name, RandomGenerator.class);
return factory;
}

/**
ProTip! Use n and p to navigate between commits in a pull request.