increase file id to 8 bytes
This commit is contained in:
parent
eced5be836
commit
8cf3b89f91
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ module.exports = function(ws, req) {
|
|||
|
||||
ws.once('message', async function(message) {
|
||||
try {
|
||||
const newId = crypto.randomBytes(5).toString('hex');
|
||||
const newId = crypto.randomBytes(8).toString('hex');
|
||||
const owner = crypto.randomBytes(10).toString('hex');
|
||||
|
||||
const fileInfo = JSON.parse(message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue