memorable download codes

This commit is contained in:
xenofem 2022-05-01 03:28:25 -04:00
parent 511bd741dd
commit 86bdac20af
7 changed files with 31 additions and 10 deletions

View file

@ -5,7 +5,6 @@ use actix_http::ws::{CloseReason, Item};
use actix_web_actors::ws::{self, CloseCode};
use bytes::Bytes;
use log::{debug, error, info, trace};
use rand::distributions::{Alphanumeric, DistString};
use serde::{Deserialize, Serialize};
use time::OffsetDateTime;
use unicode_normalization::UnicodeNormalization;
@ -68,7 +67,7 @@ impl Uploader {
pub(crate) fn new(app_data: super::AppData) -> Self {
Self {
writer: None,
storage_filename: Alphanumeric.sample_string(&mut rand::thread_rng(), 8),
storage_filename: store::gen_storage_code(),
app_data,
bytes_remaining: 0,
}