From 247f5c7268a17ba01d45181799266daa362ef7e7 Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 24 Aug 2019 23:44:35 -0400 Subject: [PATCH] probably fine with 8 digit codes --- src/app/views/home/home.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/views/home/home.component.ts b/src/app/views/home/home.component.ts index 50165d0..bd80044 100644 --- a/src/app/views/home/home.component.ts +++ b/src/app/views/home/home.component.ts @@ -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]); }