Skip to main content

Function: createUniqueKey()

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / createUniqueKey

Function: createUniqueKey()

createUniqueKey(prefix): string

Defined in: packages/gala-core-sdk/dist/index.d.ts:2278

A fresh per-attempt key: <prefix><random UUID>, the UUID a random version-4 one.

Parameters​

prefix​

string

Returns​

string

Throws​

GalaSDKError CSPRNG_UNAVAILABLE when the platform has no crypto.getRandomValues (install a polyfill such as react-native-get-random-values on React Native).