MCPcopy
hub / github.com/zxlie/FeHelper / generateSnowflakes

Function generateSnowflakes

apps/uuid-gen/index.js:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 function generateSnowflakes() {
62 var count = Math.min(Math.max(parseInt($('snowflakeCount').value) || 1, 1), 100);
63 var results = [];
64 for (var i = 0; i < count; i++) {
65 results.push(generateSnowflakeId());
66 }
67 $('snowflakeResult').value = results.join('\n');
68 }
69
70 function parseSnowflake() {
71 try {

Callers

nothing calls this directly

Calls 2

generateSnowflakeIdFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected