Attila Doroszlai created HDDS-10151:
---------------------------------------

             Summary: Random object created and used only once
                 Key: HDDS-10151
                 URL: https://issues.apache.org/jira/browse/HDDS-10151
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: test
            Reporter: Attila Doroszlai


Replace single-use {{Random}} objects by {{RandomUtils}} or similar.

Example:

{code}
-      int index = new Random().nextInt(dnInfos.size());
+      int index = RandomUtils.nextInt(0, dnInfos.size());
{code}

See attached file for list of items to fix.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to