File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/java.base/share/classes/java/security Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 25
25
26
26
package java .security ;
27
27
28
+ import jdk .internal .util .ByteArray ;
28
29
import sun .security .jca .GetInstance ;
29
30
import sun .security .jca .GetInstance .Instance ;
30
31
import sun .security .jca .Providers ;
@@ -837,6 +838,16 @@ protected final int next(int numBits) {
837
838
return next >>> (numBytes *8 - numBits );
838
839
}
839
840
841
+ /**
842
+ * {@inheritDoc}
843
+ */
844
+ @ Override
845
+ public long nextLong () {
846
+ byte [] b = new byte [8 ];
847
+ nextBytes (b ); // Calls engineNextBytes internally
848
+ return ByteArray .getLong (b , 0 );
849
+ }
850
+
840
851
/**
841
852
* Returns the given number of seed bytes, computed using the seed
842
853
* generation algorithm that this class uses to seed itself. This
You can’t perform that action at this time.
0 commit comments