Skip to content

Hash

Inherits: LibTSMModule

Functions

Calculate

lua
function Util.Hash.Calculate(data, hash)
  -> number

Calculates the hash of the specified data.

Parameters:

NameTypeDescription
dataanyThe data to be hased
hashnumberThe initial value of the hash

Returns:

TypeDescription
number