ADDITIONAL SYSTEM INFORMATION :
JDK 21
A DESCRIPTION OF THE PROBLEM :
The algorithm used to generate random BigIntegers creates a byte array randomly filled by a specified Random object, then the byte array is copied into the int magnitude array, stripping any leading zero ints. This procedure can be made faster, creating directly the int magnitude array and ensuring that there are no leading zero ints, like I did here: https://github.com/openjdk/jdk/pull/16817
            
JDK 21
A DESCRIPTION OF THE PROBLEM :
The algorithm used to generate random BigIntegers creates a byte array randomly filled by a specified Random object, then the byte array is copied into the int magnitude array, stripping any leading zero ints. This procedure can be made faster, creating directly the int magnitude array and ensuring that there are no leading zero ints, like I did here: https://github.com/openjdk/jdk/pull/16817
- links to
- 
                     Review(master)
        openjdk/jdk/16817 Review(master)
        openjdk/jdk/16817
 P4
  P4