Fix spelling
authorAdam Roses Wight <awight@wikimedia.org>
Tue, 6 Sep 2016 16:49:35 +0000 (09:49 -0700)
committerAdam Roses Wight <awight@wikimedia.org>
Tue, 6 Sep 2016 16:49:35 +0000 (09:49 -0700)
However... this comment might be irrelevant.  The code is actually joining 8
random 1-byte integers together (all produced by the same algorithm).  We're
clearly attempting to make a number with 64 bits of entropy, and the comment
is quite oblique about that fact.

Change-Id: I59ac0c208bdb9d7f427fea4f205ee7293a710ca8

resources/src/mediawiki/mediawiki.user.js

index 0fdd9aa..7df778f 100644 (file)
@@ -76,8 +76,8 @@
                                hexRnds[ i ] = byteToHex[ rnds[ i ] ];
                        }
 
-                       // Concatenation of two random integers with entrophy n and m
-                       // returns a string with entrophy n+m if those strings are independent
+                       // Concatenation of two random integers with entropy n and m
+                       // returns a string with entropy n+m if those strings are independent
                        return hexRnds.join( '' );
                },