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

Mikhail Khludnev commented on LUCENE-4212:
------------------------------------------

[~thetaphi] I wonder why Math.random() isn't banned by forbiddenApi? Does 
RandomizedTestRuner propagate seed there and prevents calling new Random()?  

> Tests should not use new Random() without args
> ----------------------------------------------
>
>                 Key: LUCENE-4212
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4212
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: general/build
>            Reporter: Robert Muir
>             Fix For: 4.0-ALPHA, Trunk
>
>         Attachments: LUCENE-4212.patch, LUCENE-4212.patch, LUCENE-4212.patch, 
> LUCENE-4212.patch
>
>
> They should be using random() etc, and if they create one, it should pass in 
> a seed.
> Otherwise, they probably won't reproduce.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to