probably fine with 8 digit codes

This commit is contained in:
Zakary Timson 2019-08-24 23:44:35 -04:00
parent ddcb341ef9
commit 247f5c7268

View File

@ -17,7 +17,7 @@ export class HomeComponent {
async new() {
let mapCode: string;
do {
mapCode = Array(16).fill(0).map(() => chars[Math.round(Math.random() * chars.length)]).join('');
mapCode = Array(8).fill(0).map(() => chars[Math.round(Math.random() * chars.length)]).join('');
} while (await this.syncService.exists(mapCode));
return this.router.navigate(['/', mapCode]);
}