MCPcopy
hub / github.com/apocas/dockerode / randomString

Function randomString

test/container.js:212–217  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

210 };
211
212 function randomString(length) {
213 var result = '',
214 chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
215 for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))];
216 return result;
217 }
218
219 /**
220 * simple test that writes 1000 bytes to the "wc -c" command, that command

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…