---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-core/functions/ssFnv1a.md
---
# Function: ssFnv1a()

> **ssFnv1a**(`s`): `number`

Defined in: [src/ShaderIds.ts:8](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/ShaderIds.ts#L8)

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.rs`
`fnv1a_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`
