Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169312

SecureRandom::getSeed(num) not specified if num is negative

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: security-libs
    • Labels:

      Description

      SecureRandom::getSeed(num) always calls SecureRandom::generateSeed(num). In JDK-8051408, generateSeed() was updated to throw an IllegalArgumentException if num is negative (before it, a NegativeArraySizeException was thrown) and it was specified to do so. However, spec for getSeed() was not updated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                weijun Weijun Wang
                Reporter:
                weijun Weijun Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: