Import apps/android/src/services/rpc-id.ts

This commit is contained in:
QQ 2026-11-14 14:18:36 +08:00
parent f4b621fe6a
commit 50efa30755
1 changed files with 5 additions and 0 deletions

View File

@ -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)}`
}