UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

14 lines (13 loc) 635 B
/** cyrb53 (c) 2018 bryc (github.com/bryc) License: Public domain (or MIT if needed). Attribution appreciated. A fast and simple 53-bit string hash function with decent collision resistance. Largely inspired by MurmurHash2/3, but with a focus on speed/simplicity. */ export declare const cyrb53: (str: string, seed?: number) => number; /** * Be careful changing this function, it will affect the rollout percentage. * This hash function was picked because it's simple and fast and only needs * to split across 100 buckets. */ export declare const hashPct: (flag_key: string, value: string, pct: number) => boolean;