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:
parent
39bc0b9eaa
commit
b7bc968da2
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue