Skip to content

Commit 45e0d44

Browse files
julianladischvy
andauthored
Update log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/UuidPatternConverter.java
Co-authored-by: Volkan Yazıcı <[email protected]>
1 parent 6cecd38 commit 45e0d44

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/UuidPatternConverter.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ private UuidPatternConverter(final boolean isRandom) {
4141
/**
4242
* Creates an instance of {@link UuidPatternConverter}.
4343
* <p>
44-
* The {@code "RANDOM"} option generates a type 4 (pseudo randomly generated) UUID. The UUID is generated using
45-
* a cryptographically strong pseudo random number generator.
44+
* The {@code RANDOM} option generates a Type 4 (pseudo-randomly generated) UUID.
45+
* The UUID is generated using a cryptographically strong pseudo-random number generator.
4646
* <p>
47-
* The {@code "TIME"} option generates a type 1 (date and time based) UUID using the MAC address of each host.
48-
* To ensure uniqueness across multiple JVMs and/or class loaders on the same host, a random number between
49-
* 0 and 16,384 will be associated with each instance of the UUID generator class, and included in each time-based
50-
* UUID generated. See {@link UuidUtil#UUID_SEQUENCE} how to seed the UUID generation with an integer value.
47+
* The {@code TIME} option generates a Type 1 (date and time based) UUID using the local network interface's MAC address.
48+
* To ensure uniqueness across multiple JVMs and/or class loaders on the same host, a random number between 0 and 16384 will be associated with each instance of the UUID generator class, and included in each time-based UUID generated.
49+
* See {@link UuidUtil#UUID_SEQUENCE} how to seed the UUID generation with an integer value.
5150
* Because time-based UUIDs contain the MAC address and timestamp, they should be used with care.
5251
*
5352
* @param options a single option with the value {@code "RANDOM"} or {@code "TIME"}, or an empty array for {@code "TIME"}

0 commit comments

Comments
 (0)