Skip to content

Commit 87a306b

Browse files
authored
chore: made fast UUID to internal (#50)
1 parent c303dc0 commit 87a306b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grpc-context-utils/src/main/java/org/hypertrace/core/grpcutils/context/FastUUIDGenerator.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
import java.util.UUID;
44
import java.util.concurrent.ThreadLocalRandom;
55

6-
public class FastUUIDGenerator {
6+
class FastUUIDGenerator {
77
/**
88
* This function generates UUIDs using ThreadLocalRandom, which is faster and doesn't block like
99
* the default randomUUID method that relies on /dev/random. It's suitable for most random UUID
1010
* needs.
1111
*/
12-
public static UUID randomUUID() {
12+
static UUID randomUUID() {
1313
long mostSigBits = ThreadLocalRandom.current().nextLong();
1414
long leastSigBits = ThreadLocalRandom.current().nextLong();
1515

0 commit comments

Comments
 (0)