UNPKG
@buddy-link/react
Version:
latest (1.0.1)
1.0.1
1.0.0
Buddy SDK - React components and hooks for wallet integration
@buddy-link/react
/
hooks
/
useBuddyState
/
_uuid.js
2 lines
•
198 B
JavaScript
View Raw
1
2
let
a=
"buddystate-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"
;
export
let
uuid
=(
e=
21
)=>{
let
t=
""
,r=crypto.
getRandomValues
(
new
Uint8Array
(e));
for
(
let
n=
0
;n<e;n++)t+=a[
63
&r[n]];
return
t};