We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c303dc0 commit 87a306bCopy full SHA for 87a306b
grpc-context-utils/src/main/java/org/hypertrace/core/grpcutils/context/FastUUIDGenerator.java
@@ -3,13 +3,13 @@
3
import java.util.UUID;
4
import java.util.concurrent.ThreadLocalRandom;
5
6
-public class FastUUIDGenerator {
+class FastUUIDGenerator {
7
/**
8
* This function generates UUIDs using ThreadLocalRandom, which is faster and doesn't block like
9
* the default randomUUID method that relies on /dev/random. It's suitable for most random UUID
10
* needs.
11
*/
12
- public static UUID randomUUID() {
+ static UUID randomUUID() {
13
long mostSigBits = ThreadLocalRandom.current().nextLong();
14
long leastSigBits = ThreadLocalRandom.current().nextLong();
15
0 commit comments