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

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

XMLWordPrintable

    • b22

        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.

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

                Created:
                Updated:
                Resolved: