]
Tomaz Cerar commented on WFCORE-490:
------------------------------------
Looking at the code it is not per request but once per boot of the server.
ModelControllerImpl uses SecureRandom per request
-------------------------------------------------
Key: WFCORE-490
URL:
https://issues.jboss.org/browse/WFCORE-490
Project: WildFly Core
Issue Type: Enhancement
Components: Domain Management
Affects Versions: 1.0.0.Alpha15
Reporter: James Livingston
Assignee: Brian Stansberry
https://github.com/wildfly/wildfly-core/blob/master/controller/src/main/j...
and
https://github.com/wildfly/wildfly-core/blob/master/controller/src/main/j...
create a new SecureRandom which is used to seed a normal Random, and that is thrown away
after one use. That causes it to use entropy from the OS pool, which if done at a
sufficiently high rate on servers can cause stalls.
I can't think of any reason why the operation ID would need to be a secure random
number rather than a normal one, so unless there is one it may be better to use a normal
Random and not drain the entropy pool.