mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-06 23:19:47 +00:00
Add first half of cloud attachment uploads
This commit is contained in:
@@ -22,7 +22,7 @@ import crypto from "crypto";
|
||||
// TODO: 'random'? seriously? who named this?
|
||||
// And why is this even here? Just use cryto.randomBytes?
|
||||
|
||||
export function random(length = 6) {
|
||||
export function randomString(length = 6) {
|
||||
// Declare all characters
|
||||
const chars =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
|
||||
Reference in New Issue
Block a user