Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
apps
/
mobile
/
src
/
lib
/
uuid.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
8 lines
260 Bytes
Copy permalink
Copy
Raw
1
import
*
as
Crypto
from
"
expo-crypto
"
;
2
3
export
const
uuidv4
=
()
=>
Crypto
.
randomUUID
();
4
5
export
const
randomHex
=
(
byteLength
:
number
):
string
=>
6
Array
.
from
(
Crypto
.
getRandomBytes
(
byteLength
),
(
byte
)
=>
byte
.
toString
(
16
).
padStart
(
2
,
"
0
"
)).
join
(
7
""
,
8
);