@@ -708,7 +708,6 @@ PythonThreadState getThreadState(Node n) {
708708 private final IDUtils idUtils = new IDUtils ();
709709
710710 @ CompilationFinal private SecureRandom secureRandom ;
711- @ CompilationFinal private SecureRandom initializationSecureRandom ;
712711 private InitializationEntropySource initializationEntropySource ;
713712
714713 // Equivalent of _Py_HashSecret
@@ -1465,15 +1464,6 @@ public SecureRandom getSecureRandom() {
14651464 return secureRandom ;
14661465 }
14671466
1468- public SecureRandom getInitRandom () {
1469- assert !env .isPreInitialization ();
1470- if (initializationSecureRandom == null ) {
1471- CompilerDirectives .transferToInterpreterAndInvalidate ();
1472- initializationSecureRandom = new InitializationSecureRandom (getInitializationEntropySource ());
1473- }
1474- return initializationSecureRandom ;
1475- }
1476-
14771467 public void fillInitializationEntropyBytes (byte [] bytes ) {
14781468 getInitializationEntropySource ().nextBytes (bytes );
14791469 }
@@ -1752,31 +1742,6 @@ private interface InitializationEntropySource {
17521742 void nextBytes (byte [] bytes );
17531743 }
17541744
1755- private static final class InitializationSecureRandom extends SecureRandom {
1756- private static final long serialVersionUID = 1L ;
1757- private final transient InitializationEntropySource source ;
1758-
1759- InitializationSecureRandom (InitializationEntropySource source ) {
1760- this .source = source ;
1761- }
1762-
1763- @ Override
1764- public void setSeed (byte [] seed ) {
1765- }
1766-
1767- @ Override
1768- public void nextBytes (byte [] bytes ) {
1769- source .nextBytes (bytes );
1770- }
1771-
1772- @ Override
1773- public byte [] generateSeed (int numBytes ) {
1774- byte [] seed = new byte [numBytes ];
1775- source .nextBytes (seed );
1776- return seed ;
1777- }
1778- }
1779-
17801745 private static final class DefaultInitializationEntropySource implements InitializationEntropySource {
17811746 private final SecureRandom secureRandom ;
17821747
0 commit comments