We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 895fc47 commit 350c02dCopy full SHA for 350c02d
lib/tdb.js
@@ -19,7 +19,7 @@ const { DocumentNotFoundError, WriteDatabaseError } = require('./errors');
19
// This generates nice, short ids (ex: 'HrILY', '2JjA9s') that are as unique as a uuid.
20
function generateID()
21
{
22
- return base62.encode(new Buffer(uuid.v4(null, [])).readUInt32LE(0));
+ return base62.encode(Buffer.from(uuid.v4(null, [])).readUInt32LE(0));
23
} // end generateID
24
25
//----------------------------------------------------------------------------------------------------------------------
0 commit comments