SecureRandom nextLong memory usage

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 25
    • Component/s: security-libs

      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.

            Assignee:
            Koushik Muthukrishnan Thirupattur
            Reporter:
            Roger Riggs
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: