accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Drob (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2728) [FindBugs] Bad random number generation in VolumeUtil
Date Wed, 23 Apr 2014 22:24:16 GMT

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

Mike Drob commented on ACCUMULO-2728:
-------------------------------------

I think it was [~bhavanki] that suggested that this would be a good candidate for using a
UUID instead of an int.

> [FindBugs] Bad random number generation in VolumeUtil
> -----------------------------------------------------
>
>                 Key: ACCUMULO-2728
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2728
>             Project: Accumulo
>          Issue Type: Sub-task
>          Components: build
>            Reporter: Christopher Tubbs
>            Assignee: Christopher Tubbs
>            Priority: Minor
>              Labels: findbugs
>             Fix For: 1.6.0
>
>
> This is a rank 7 findbugs warning. Math.abs(rand.nextInt()) doesn't always produce a
non-negative number.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message