Skip to content

Commit

Permalink
Cleanup from fbf0e5f
Browse files Browse the repository at this point in the history
Motivation:
ThreadLocalInsecureRandom still referenced ThreadLocalRandom directly, but shouldn't.

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

Result:
Less usage of internal.ThreadLocalRandom.
  • Loading branch information
Scottmitch committed Feb 16, 2017
1 parent fbf0e5f commit 56694eb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit 56694eb

Please sign in to comment.