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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.4.0
    • core-libs
    • sparc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: