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

java.math.BigInteger.probablePrime() hangs with bitLength=2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: auR10023 Date: 07/21/2000



      java.math.BigInteger.probablePrime(int bitLength, Random rnd) hangs with bitLength=2.
      Here is the example:

      -------------test.java--------------

      import java.math.*;
      import java.util.*;

      public class test {
          public static void main(String [] args) {
              BigInteger bi = BigInteger.probablePrime(2, new Random(10));
              System.out.println(bi);
          }
      }
       

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mmcclosksunw Michael Mccloskey (Inactive)
              Reporter:
              avusunw Avu Avu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: