-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 25
-
Component/s: security-libs
-
b06
SecureRandom uses straightforward implementations inherited from Random but in the process does double the memory allocations necessary.
The delegation to SecureRandom.engineNextBytes does not provide `int` or `long` values, the caller must allocate a byte array and assemble the value itself.
Random.nextLong() could be enhanced to do a single allocation and assemble the long value.
The delegation to SecureRandom.engineNextBytes does not provide `int` or `long` values, the caller must allocate a byte array and assemble the value itself.
Random.nextLong() could be enhanced to do a single allocation and assemble the long value.
- csr for
-
JDK-8361100 SecureRandom nextLong memory usage
-
- Closed
-
- links to
-
Commit(master)
openjdk/jdk/91df7978
-
Review(master)
openjdk/jdk/26005