Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
0.21.0, 0.22.0
-
None
-
Reviewed
Description
RandomSeedGenerator introduced in MAPREDUCE-1306 could be more efficient by reusing the MD5 object across calls. Wrapping the MD5 in a ThreadLocal makes the call thread safe as well. Neither of these is an issue with the current client, the mumak simulator, but the changes are small and make the code more useful in the future. Thanks to Chris Douglas for the suggestion.