Function
decode
(str: string, pos: number)
Source from the content-addressed store, hash-verified
| 16 | export const encode = (num: number): string => ENCODE[num & MASK6]; |
| 17 | |
| 18 | export const decode = (str: string, pos: number): number => |
| 19 | mapGet(DECODE, str[pos]) ?? 0; |
| 20 | |
| 21 | // Fallback is not cryptographically secure but tolerable for ReactNative UUIDs. |
| 22 | export const getRandomValues = GLOBAL.crypto |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…