can in fact be smaller, as for uniqueness, not security
This commit is contained in:
parent
9db9594a48
commit
bb4ab7ab92
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ async def create_lnurldevice(
|
|||
data: createLnurldevice,
|
||||
) -> lnurldevices:
|
||||
if data.device == "pos" or data.device == "atm":
|
||||
lnurldevice_id = shortuuid.uuid()[:8]
|
||||
lnurldevice_id = shortuuid.uuid()[:5]
|
||||
else:
|
||||
lnurldevice_id = urlsafe_short_hash()
|
||||
lnurldevice_key = urlsafe_short_hash()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue