Skip to content

Commit 091e9c1

Browse files
author
Christian Wimmer
committed
Do not include SecureRandom in every image
1 parent a53da53 commit 091e9c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ServiceLoaderFeature.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ public static class Options {
117117
* specialized features.
118118
*/
119119
private final Set<String> servicesToSkip = new HashSet<>(Arrays.asList(
120+
/*
121+
* Loaded in java.util.random.RandomGeneratorFactory.FactoryMapHolder, which is
122+
* initialized at image build time.
123+
*/
124+
"java.util.random.RandomGenerator",
120125
"java.security.Provider", // see SecurityServicesFeature
121126
"sun.util.locale.provider.LocaleDataMetaInfo", // see LocaleSubstitutions
122127
"org.graalvm.nativeimage.Platform" // shouldn't be reachable after

0 commit comments

Comments
 (0)