Browse Source

fix keygen off by 1 error

pull/1/head
Tim Glasgow 2 years ago
parent
commit
067efc02d2
  1. 2
      changeme/src/libs/Random.js

2
changeme/src/libs/Random.js

@ -10,7 +10,7 @@ export function generateKey() {
for (let i = 0; i < 64; i++) { for (let i = 0; i < 64; i++) {
let newCharIndex = newKey[i]; let newCharIndex = newKey[i];
while(newCharIndex > charactersLength){ while(newCharIndex >= charactersLength){
newCharIndex -= charactersLength; newCharIndex -= charactersLength;
} }
result.push( result.push(

Loading…
Cancel
Save