Provides various utilities for generating hash codes for strings and UUIDs.

This class should not be constructed as it only contains static methods.

Constructors

Methods

Constructors

Methods

  • Provides a solid string hashing algorithm.

    Sourced from: https://stackoverflow.com/a/52171480

    Parameters

    • str: string

      String to hash.

    • Optionalseed: number

      A seed value altering the hash.

    Returns number

    Hash code.

  • Validates that the given string is formatted as a UUIDv4 string.

    Parameters

    • uuid: string

      UUID string to test.

    Returns boolean

    Is UUIDv4 string.