9 lines · 337 B · TypeScript
RawDownload
import * as Crypto from "expo-crypto"; export const uuidv4 = () => Crypto.randomUUID(); /** Random lowercase hex string of `byteLength` bytes (2 chars per byte). */export const randomHex = (byteLength: number): string =>  Array.from(Crypto.getRandomBytes(byteLength), (byte) => byte.toString(16).padStart(2, "0")).join(    "",  );

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t