increase file id to 8 bytes

This commit is contained in:
Danny Coates 2019-03-26 09:32:44 -07:00
parent eced5be836
commit 8cf3b89f91
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 3 additions and 3 deletions

View file

@ -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);