You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2022/09/07 17:50:54 UTC

[cassandra-dtest] 02/02: Seed random module with node's pid

This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch CASSANDRA-17872
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git

commit 8c9e7900e9dc1be23f9b44c19f2b82ead945a738
Author: Brandon Williams <br...@apache.org>
AuthorDate: Wed Sep 7 12:50:43 2022 -0500

    Seed random module with node's pid
---
 tools/jmxutils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/jmxutils.py b/tools/jmxutils.py
index b10bfa9c..01ff641f 100644
--- a/tools/jmxutils.py
+++ b/tools/jmxutils.py
@@ -174,6 +174,7 @@ class JolokiaAgent(object):
 
     def __init__(self, node):
         self.node = node
+        random.seed(node.pid)
 
     # See CASSANDRA-17872 for the reason behind this
     def get_port(self, default=8778):


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org