v3d-core
Version:
WebGL-based humanoid model rendering engine.
22 lines (21 loc) • 761 B
TypeScript
/** Copyright (c) 2021 The v3d Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/**
* Calculate a 32 bit FNV-1a hash
* Ref.: http://isthe.com/chongo/tech/comp/fnv/
*
* @param str the input value
* @param seed optionally pass the hash of the previous chunk
* @returns hash
*/
export declare function hashFnv32a(str: string, seed?: number): string;
/**
* Extended 64 bit FNV-1a hash
* @param str the input value
* @param seed optionally pass the hash of the previous chunk
* @returns hash
*/
export declare function hashFnv64a(str: string, seed?: number): string;