Bill commented on code in PR #7449:
URL: https://github.com/apache/geode/pull/7449#discussion_r844178178
##########
geode-core/src/distributedTest/java/org/apache/geode/distributed/internal/P2PMessagingConcurrencyDUnitTest.java:
##########
@@ -194,6 +193,7 @@ public void testP2PMessaging(
throw new RuntimeException("doSending failed", e);
}
final int firstMessageId = senderId * SENDER_COUNT;
+ final Random random = new Random(RANDOM_SEED);
Review Comment:
oh: by moving it into the lambda, it's no longer shared across threads. And
by constructing a `Random` I retain a scrap of determinism, by being able to
seed it.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]