mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +03:00
increase file id to 8 bytes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user