Skip to content

Function: ssFnv1a() ​

ssFnv1a(s): number

Defined in: src/ShaderIds.ts:8

FNV-1a 32-bit over a string's bytes — the hash the SDK identifies things by.

Identical to the converter and the runtime (ssconverter/src/utils.rsfnv1a_hash_str, ssruntime/src/lib.rs). The ids it is used on here are ASCII, so charCodeAt is the byte value.

Parameters ​

s ​

string

Returns ​

number