Browse files

Random problem seeds in dev mode should be positive

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D494
  • Loading branch information...
1 parent 80788e1 commit 88133cf8ce3abea07418f168f28f9cbf8a91c960 @beneater beneater committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 khan-exercise.js
View
2 khan-exercise.js
@@ -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)

0 comments on commit 88133cf

Please sign in to comment.