MCPcopy Create free account
hub / github.com/GoogleChrome/samples / randomFill

Function randomFill

mkbitmap/mkbitmap.js:1203–1206  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

1201 abort("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };");
1202 }
1203 function randomFill(view) {
1204 // Lazily init on the first invocation.
1205 return (randomFill = initRandomFill())(view);
1206 }
1207
1208
1209

Callers 1

randomByteFunction · 0.70

Calls 1

initRandomFillFunction · 0.70

Tested by

no test coverage detected