MCPcopy
hub / github.com/tinyplex/tinybase / getUniqueId

Function getUniqueId

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:691–695  ·  view source on GitHub ↗
(length = 16)

Source from the content-addressed store, hash-verified

689 (array) => arrayMap(array, () => mathFloor(mathRandom() * 256))
690);
691var getUniqueId = (length = 16) => arrayReduce(
692 getRandomValues(new Uint8Array(length)),
693 (uniqueId, number) => uniqueId + encode(number),
694 EMPTY_STRING
695);
696var jsonString = JSON.stringify;
697var jsonParse = JSON.parse;
698var jsonStringWithMap = (obj) => jsonString(

Callers 4

common.test.tsFile · 0.90
databases.tsFile · 0.90
mocks.tsFile · 0.90
getHlcFunctionsFunction · 0.70

Calls 2

arrayReduceFunction · 0.70
encodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…