Skip to content

Commit

Permalink
ignoring whitespace in seed
Browse files Browse the repository at this point in the history
  • Loading branch information
cmavelis committed Mar 12, 2019
1 parent 502ae53 commit e23b94d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class Game extends React.Component {
if (randomSeed !== 'test') {
randomSeed = todayValue + randomSeed;
}
randomSeed = randomSeed.replace(/\s+/g, '');
Math.seedrandom(randomSeed);
// select sample of words using seed, ignoring repeats
const wordsSelected = [];
Expand Down

0 comments on commit e23b94d

Please sign in to comment.