Skip to content

Commit

Permalink
Random problem seeds in dev mode should be positive
Browse files Browse the repository at this point in the history
Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D494
  • Loading branch information
beneater committed Jul 31, 2012
1 parent 80788e1 commit 88133cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion khan-exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ var Khan = (function() {

// In either of these testing situations,
} else if ((testMode && Khan.query.test != null) || user == null) {
problemSeed = randomSeed % bins;
problemSeed = Math.abs(randomSeed % bins);
}

// Set randomSeed to what problemSeed is (save problemSeed for recall later)
Expand Down

0 comments on commit 88133cf

Please sign in to comment.