Motivation:
ThreadLocalInsecureRandom still referenced ThreadLocalRandom directly, but shouldn't.

Modifications:
ThreadLocalInsecureRandom should reference PlatformDependent#threadLocalRandom() in comments

Result:
Less usage of internal.ThreadLocalRandom.
This commit is contained in:
Scott Mitchell 2017-02-16 15:56:21 -08:00
parent fbf0e5f4dd
commit 56694ebc0f

View File

@ -17,13 +17,12 @@
package io.netty.handler.ssl.util;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.ThreadLocalRandom;
import java.security.SecureRandom;
import java.util.Random;
/**
* Insecure {@link SecureRandom} which relies on {@link ThreadLocalRandom} for random number generation.
* Insecure {@link SecureRandom} which relies on {@link PlatformDependent#threadLocalRandom()} for random number generation.
*/
final class ThreadLocalInsecureRandom extends SecureRandom {