Import apps/android/src/services/rpc-id.ts
This commit is contained in:
parent
f4b621fe6a
commit
50efa30755
|
|
@ -0,0 +1,5 @@
|
|||
export function createNativeRpcId(): string {
|
||||
const g = globalThis.crypto
|
||||
if (g?.randomUUID !== undefined) return g.randomUUID()
|
||||
return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`
|
||||
}
|
||||
Loading…
Reference in New Issue