Tibor17 commented on code in PR #505: URL: https://github.com/apache/maven-surefire/pull/505#discussion_r844548223
########## maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java: ########## @@ -3114,9 +3114,12 @@ protected void warnIfIllegalFailOnFlakeCount() throws MojoFailureException private void printDefaultSeedIfNecessary() { - if ( getRunOrderRandomSeed() == null && getRunOrder().equals( RunOrder.RANDOM.name() ) ) + if ( getRunOrder().equals( RunOrder.RANDOM.name() ) ) { - setRunOrderRandomSeed( System.nanoTime() ); + if ( getRunOrderRandomSeed() == null ) + { + setRunOrderRandomSeed( System.nanoTime() ); Review Comment: @slawekjaranowski runOrder can be other than random and so `DefaultRunOrderCalculator` may obtain null seed. @delanym see my comment https://github.com/apache/maven-surefire/pull/505#discussion_r844543780 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org