MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / randomKey

Method randomKey

app/src/main/java/com/github/catvod/utils/Crypto.java:85–90  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

83 }
84
85 public static String randomKey(int size) {
86 StringBuilder key = new StringBuilder();
87 String keys = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
88 for (int i = 0; i < size; i++) key.append(keys.charAt((int) Math.floor(Math.random() * keys.length())));
89 return key.toString();
90 }
91}

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected