accumulo-notifications mailing list archives

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

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

Christopher Tubbs commented on ACCUMULO-2728:
---------------------------------------------

Yeah, I thought it would, too, but decided to go with a more subtle change, just to ensure
correctness, and not to change expectations.

> [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