MCPcopy
hub / github.com/scality/cloudserver / makeid

Function makeid

tests/unit/helpers.js:35–44  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

33];
34
35function makeid(size) {
36 let text = '';
37 const possible =
38 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
39 for (let i = 0; i < size; i += 1) {
40 text += possible
41 .charAt(Math.floor(Math.random() * possible.length));
42 }
43 return text;
44}
45
46function shuffle(array) {
47 let randomIndex;

Callers 2

bucket_mem_api.jsFile · 0.85
routeBackbeat.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected