public class HashUtil
Class HashUtil. Provides hashutil functionality for the Hytale server.
java.lang.Object > HashUtil
Field Summary
No fields documented.
Method Detail
hash
static
long
hash
(long v)
Method hash.
- Parameters:
longv
rehash
static
long
rehash
(final long l1)
Method rehash.
- Parameters:
final longl1
random
static
double
random
(final long l1)
Method random.
- Parameters:
final longl1
hashToRandomDouble
public
return
hashToRandomDouble
(rehash(l1)
Method hashToRandomDouble.
- Parameters:
rehash(l1rehash(l1
randomInt
static
int
randomInt
(final long l1, final long l2, final long l3, final int bound)
Method randomInt.
- Parameters:
final longl1final longl2final longl3final intbound
hashUuid
static
long
hashUuid
(@Nonnull final UUID uuid)
Method hashUuid.
- Parameters:
@Nonnull final UUIDuuid
HashUtil
public
private
HashUtil
()
Method HashUtil.