You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/01/17 19:33:00 UTC
[jira] [Created] (HDDS-10151) Random object created and used only once
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org