MCPcopy Create free account
hub / github.com/M66B/FairEmail / getRandomWord

Method getRandomWord

app/src/main/java/eu/faircode/email/BIP39.java:73–79  ·  view source on GitHub ↗
(int len)

Source from the content-addressed store, hash-verified

71 }
72
73 private static String getRandomWord(int len) {
74 SecureRandom rnd = new SecureRandom();
75 StringBuilder sb = new StringBuilder(len);
76 for (int i = 0; i < len; i++)
77 sb.append((char) ('a' + rnd.nextInt(26)));
78 return sb.toString();
79 }
80}

Callers 1

getWordMethod · 0.95

Calls 2

appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected