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

test/jdk/jdk/internal/math/FloatingDecimal/TestFloatingDecimal should use RandomFactory

    XMLWordPrintable

Details

    • b22

    Backports

      Description

        The TestFloatingDecimal uses a regular Random without a known seed for testing https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/internal/math/FloatingDecimal/TestFloatingDecimal.java#L77 . When the test fails the used seed is not printed. While the test prints the failed pattern it never prints the seed. To re-run the entire test with the same random seed the test should use Utils#getRandomInstance.

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                davleopo David Leopoldseder
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: