Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Minor: remove hard-coded array length, simplify.

bgrozev18e7aa50abdd
diff --git a/roomname_generator.js b/roomname_generator.js
index a4a29885b0..45d35014b9 100644
--- a/roomname_generator.js
+++ b/roomname_generator.js
@@ -118,7 +118,7 @@ var RoomNameGenerator = function(my) {
*/
function generateWord()
{
- return words[( Math.round(((new Date().getTime() / 1000) +Math.random()*1000) % 1008))];
+ return words[Math.floor(Math.random() * words.length)];
}
/**