public interface ServerYeast
Modifier and Type | Field and Description |
---|---|
static char[] |
ALPHABET |
static ThreadLocal<SecureRandom> |
THREAD_RANDOM
A ThreadLocal is used to improve thread performance since
SecureRandom do not perform well with
thread contention. |
Modifier and Type | Method and Description |
---|---|
static String |
encode(long num) |
static String |
yeast() |
static final ThreadLocal<SecureRandom> THREAD_RANDOM
SecureRandom
do not perform well with
thread contention.static final char[] ALPHABET
Copyright © 2022. All rights reserved.