cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ariel Weisberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-9581) pig-tests spend time waiting on /dev/random for SecureRandom
Date Thu, 11 Jun 2015 23:32:00 GMT

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

Ariel Weisberg commented on CASSANDRA-9581:
-------------------------------------------

It's transparently handled on Windows. See the linked code.
{noformat}
/*
92          * Try the URL specifying the source (e.g. file:/dev/random)
93          *
94          * The URLs "file:/dev/random" or "file:/dev/urandom" are used to
95          * indicate the SeedGenerator should use OS support, if available.
96          *
97          * On Windows, this causes the MS CryptoAPI seeder to be used.
98          *
99          * On Solaris/Linux/MacOS, this is identical to using
100         * URLSeedGenerator to read from /dev/[u]random
101         */
{noformat}

> pig-tests spend time waiting on /dev/random for SecureRandom
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-9581
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9581
>             Project: Cassandra
>          Issue Type: Test
>            Reporter: Ariel Weisberg
>            Assignee: Ariel Weisberg
>
> We don't need secure random numbers (for unit tests) so waiting for entropy doesn't make
much sense. Luckily Java makes it easy to point to /dev/urandom for entropy. It also transparently
handles it correctly on Windows.



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

Mime
View raw message