You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "rawkintrevo (via GitHub)" <gi...@apache.org> on 2023/02/14 23:00:42 UTC
[GitHub] [mahout] rawkintrevo commented on a diff in pull request #424: MAHOUT-2155 Add Javadocs for RandomWrapper
rawkintrevo commented on code in PR #424:
URL: https://github.com/apache/mahout/pull/424#discussion_r1106466795
##########
core/src/main/java/org/apache/mahout/common/RandomWrapper.java:
##########
@@ -47,14 +65,21 @@ public void setSeed(long seed) {
}
}
+ /**
+ * Sets the seed to a standard value that can be used to ensure that tests are deterministic.
+ */
void resetToTestSeed() {
setSeed(STANDARD_SEED);
}
+ /**
+ * @return the delegate random number generator.
+ */
public RandomGenerator getRandomGenerator() {
return random;
}
+
@Override
protected int next(int bits) {
Review Comment:
Addressed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mahout.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org