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

Clarify why 0 argument is ignored in SecureRandom::setSeed

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: