Kaydet (Commit) 7653682c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326730 DMI: Dubious method invocation

Change-Id: Icf44c82fc485d0172df2a9fb2cbe6b2be61630a1
üst 0f02bc18
......@@ -199,7 +199,7 @@ public final class urp implements IProtocol {
if (propertiesTid == null) {
propertiesTid = ThreadId.createFresh();
}
random = new Random().nextInt();
random = randomGenerator.nextInt();
writeRequest(
true, PROPERTIES_OID,
TypeDescription.getTypeDescription(XProtocolProperties.class),
......@@ -723,6 +723,8 @@ public final class urp implements IProtocol {
private static final int MAX_RELEASE_QUEUE_SIZE = 100;
private static final Random randomGenerator = new Random();
private final DataInput input;
private final DataOutputStream output;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment