You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2021/12/15 18:25:00 UTC

[jira] [Created] (HBASE-26582) Prune our use of Random and SecureRandom objects

Andrew Kyle Purtell created HBASE-26582:
-------------------------------------------

             Summary: Prune our use of Random and SecureRandom objects
                 Key: HBASE-26582
                 URL: https://issues.apache.org/jira/browse/HBASE-26582
             Project: HBase
          Issue Type: Sub-task
            Reporter: Andrew Kyle Purtell


While looking over Findbugs/Spotbugs findings on HBASE-26555 I noticed we have some violations of Spotbugs rules regarding lack of Random object re-use, and generally have a lot of static Random and SecureRandom objects in our code, especially in tests, where ThreadLocalRandom would be more than sufficient. 

This is nitty stuff but let's clean it up. It will reduce noise on the analysis reports and SecureRandom is unnecessarily slow when used wherever we don't need it. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)