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

Clarify why 0 argument is ignored in SecureRandom::setSeed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • None
    • security-libs

    Description

      The comment there says "as digest has not yet been initialized at that point" but `digest` is not used anymore now. The current reason is that we call `super(0)` in all SecureRandom constructors and we don't want a SecureRandom object always seeded right at the beginning. For example, when `new SecureRandom()` is called.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: