diff options
author | metamuffin <metamuffin@disroot.org> | 2024-10-21 14:41:44 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-10-21 14:41:44 +0200 |
commit | 55f58e1d7017ef0038840e2a9d506cfaf85e8ea8 (patch) | |
tree | 03c36897540cf49faf5431b105cce1c7fdcb33c5 | |
parent | 1a8499e3e9000b367ee0596b81eed1bbe3682a9a (diff) | |
download | keks-meet-55f58e1d7017ef0038840e2a9d506cfaf85e8ea8.tar keks-meet-55f58e1d7017ef0038840e2a9d506cfaf85e8ea8.tar.bz2 keks-meet-55f58e1d7017ef0038840e2a9d506cfaf85e8ea8.tar.zst |
reduce length of generated room names. 267 -> 91 bits of entropy
-rw-r--r-- | client-web/public/start.html | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/client-web/public/start.html b/client-web/public/start.html index d81351a..4c90934 100644 --- a/client-web/public/start.html +++ b/client-web/public/start.html @@ -31,46 +31,53 @@ <a href="https://codeberg.org/metamuffin/keks-meet">codeberg</a> </noscript> <script> - <!-- TODO any better idea for random room names? --> function random_name() { const frags = [ [ - "Sweet", "Delicious", + "Flavourful", "Fluffy", - "Small", "Glowing", - "Flavourful", + "Irradiated", + "Magic", + "Radiant", + "Small", + "Soft", + "Sweet", "Tasty", "Yummy", - "Soft", ], [ - "Strawberry", - "Raspberry", + "Apple", + "Banana", + "Berry", "Blueberry", "Chocolate", - "Vanilla", - "Potato", - "Tomato", "Lemon", - "Apple", + "Lime", "Pineapple", + "Potato", "Pumpkin", + "Raspberry", + "Strawberry", + "Tomato", + "Vanilla", ], [ - "Muffin", - "Pie", - "Cupcake", - "Sandwish", + "Biscuit", "Cake", "Cookie", "Crêpe", - "Pancake", - "Biscuit", - "IceCream", - "Yogurt", + "Cupcake", + "Dessert", + "Icecream", + "Meal", "Milkshake", + "Muffin", + "Pancake", + "Pie", + "Sandwish", + "Snack", ], ]; return frags @@ -81,7 +88,7 @@ function random_secret() { const random = window.crypto.getRandomValues( - new Uint8Array(32) + new Uint8Array(10) // 80b (+ ~11b from name) entropy ); return Array.from(random) .map((b) => b.toString(16).padStart(2, "0")) |