[ 
https://issues.apache.org/jira/browse/HBASE-26582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504756#comment-17504756
 ] 

Duo Zhang commented on HBASE-26582:
-----------------------------------

While cherry-picking HBASE-26824 to branch-2.x, I found that we missed 
HBASE-26582 for branch-2.5 so I cherry-picked it to branch-2.5 too.

Feel free to shout if there are anything wrong.

> Prune 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
>            Assignee: Andrew Kyle Purtell
>            Priority: Minor
>             Fix For: 2.5.0, 2.6.0, 3.0.0-alpha-3, 2.4.11
>
>
> 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)

Reply via email to