[
https://issues.apache.org/jira/browse/MAHOUT-2155?focusedWorklogId=845498&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-845498
]
ASF GitHub Bot logged work on MAHOUT-2155:
------------------------------------------
Author: ASF GitHub Bot
Created on: 14/Feb/23 23:00
Start Date: 14/Feb/23 23:00
Worklog Time Spent: 10m
Work Description: 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.
Issue Time Tracking
-------------------
Worklog Id: (was: 845498)
Time Spent: 0.5h (was: 20m)
> Javadocs for RandomWrapper
> --------------------------
>
> Key: MAHOUT-2155
> URL: https://issues.apache.org/jira/browse/MAHOUT-2155
> Project: Mahout
> Issue Type: Documentation
> Reporter: Trevor Grant
> Assignee: Trevor Grant
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)