[ 
https://issues.apache.org/jira/browse/FELIX-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sahoo updated FELIX-4043:
-------------------------

    Attachment: Felix-4043.patch

A simple patch that allows Felix to use Random instead of SecureRandom when 
felix.uuid.policy.random=true
                
> Make the use of SecureRandom optional for UUID generation in Felix.init
> -----------------------------------------------------------------------
>
>                 Key: FELIX-4043
>                 URL: https://issues.apache.org/jira/browse/FELIX-4043
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-4.2.1
>            Reporter: Tom Mueller
>         Attachments: Felix-4043.patch
>
>
> One of the first things Felix.init does is to call Util.randomUUID to 
> generate the UUID that will be used by the framework. This method uses the 
> SecureRandom Java SE library to generate the UUID. Depending on the operating 
> system, initialization of SecureRandom can be very slow.  For example, on 
> Windows, this can take hundreds of milliseconds. 
> When used in a single server environment, it is not clear that a UUID is even 
> necessary.  And it may not be necessary to use one that depend on using 
> SecureRandom.  Maybe the caller of Felix.init could provide the UUID or maybe 
> the UUID could be generated using Random would work just as well. 
> The purpose of this improvement request is to provide a method for avoiding 
> the use of SecureRandom when using Felix so as to reduce the time required to 
> initialize the Felix framework. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to