Class Hashing
Index
Constructors
Methods
Methods
Static
hashCode
- hash
Code (str, seed?): number Provides a solid string hashing algorithm.
Sourced from: https://stackoverflow.com/a/52171480
Parameters
- str: string
String to hash.
Optional
seed: numberA seed value altering the hash.
Returns number
Hash code.
- str: string
Static
isUuidv4
Static
uuidv4
- uuidv4(): string
Generates a UUID v4 compliant ID. Please use a complete UUID generation package for guaranteed compliance.
This code is an evolution of the following Gist. https://gist.github.com/jed/982883
There is a public domain / free copy license attached to it that is not a standard OSS license... https://gist.github.com/jed/982883#file-license-txt
Returns string
UUIDv4
Provides various utilities for generating hash codes for strings and UUIDs.
This class should not be constructed as it only contains static methods.