Update core-java-modules/core-java-uuid/src/main/java/com/baeldung/uuid/UUIDPositiveLongGenerator.java

Oh yeah..

Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
Hangga Aji Sayekti 2023-11-03 17:13:48 +07:00 committed by GitHub
parent 39bc0b9eaa
commit b7bc968da2
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public class UUIDPositiveLongGenerator {
return Math.abs(UUID.randomUUID().getMostSignificantBits()); return Math.abs(UUID.randomUUID().getMostSignificantBits());
} }
public long gethashCode() { public long getHashCode() {
return Math.abs(UUID.randomUUID().toString().hashCode()); return Math.abs(UUID.randomUUID().toString().hashCode());
} }