mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 23:53:15 +00:00
Add first half of cloud attachment uploads
This commit is contained in:
1 parent
3720068b83
commit
1e6ed06da1
13 files changed
+381
-116
No files matched your search
@@ -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