|
@@ -89,14 +89,14 @@ class randomFree {
|
|
|
let saltArray = [];
|
|
|
let hashedCardsArray= [];
|
|
|
for (let i =0; i<5; i++){
|
|
|
- let playerCard = Math.floor((Math.random()*100 )% 100 );
|
|
|
+ let playerCard = Math.floor((Math.random()*100 ) % 100 );
|
|
|
let salt = crypto.lib.WordArray.random(128 / 8).toString();
|
|
|
let hashedCard = cryptoSHA256(playerCard.toString + salt);
|
|
|
playerCardsArray.push(playerCard);
|
|
|
saltArray.push(salt);
|
|
|
hashedCardsArray.push(hashedCard.toString());
|
|
|
}
|
|
|
- return {playerCardsArray, saltArray, hashedCardsArray};
|
|
|
+ return {playerCardsArray, saltArray, hashedCardsArray};
|
|
|
}
|
|
|
|
|
|
}
|