You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2022/04/06 16:58:05 UTC
[GitHub] [geode] Bill commented on a diff in pull request #7449: GEODE-10122: P2P Handles TLS KeyUpdate Message
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: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org