-
Enhancement
-
Resolution: Unresolved
-
P4
-
25
-
None
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
-
- Draft
-
- links to
-
Review(master) openjdk/jdk/26005