mirror of https://github.com/laurent22/joplin.git
Server: Changed ID length from 32 to 22 characters
Should still prevent collisions for 60 times the age of the Universepull/5868/head
parent
83a46e563d
commit
e9ce3d194c
|
@ -5,6 +5,6 @@ const generate = require('nanoid/generate');
|
|||
// > On the other hand, 128 bits (between 21 and 22 characters
|
||||
// > alphanumeric) is beyond the reach of brute-force attacks pretty much
|
||||
// > indefinitely
|
||||
export default function uuidgen(length: number = 32): string {
|
||||
export default function uuidgen(length: number = 22): string {
|
||||
return generate('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', length);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue