MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp23 / setSeed

Method setSeed

lab07/tests/StringUtils.java:15–17  ·  view source on GitHub ↗

Sets random seed to L so that results of randomString are predictable.

(long l)

Source from the content-addressed store, hash-verified

13
14 /** Sets random seed to L so that results of randomString are predictable.*/
15 public static void setSeed(long l) {
16 r = new Random(l);
17 }
18
19 /** Returns the next random string of length LENGTH. */
20 public static String randomString(int length) {

Callers 8

shufflePasswordMethod · 0.45
runTestGameMethod · 0.45
puzzleMethod · 0.45
getGameStartingAtMethod · 0.45
testGameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected