Sha256: 118d940f9e91188648497013421743e899ac8117c5857dd3f9c1fe1ca6027a49

Contents?: true

Size: 218 Bytes

Versions: 63

Compression:

Stored size: 218 Bytes

Contents

//Generate a random seed
gen_seed = Math.floor(Math.random() * 1000000000);
gen_seed_s = Math.floor(Math.random() * 1000000000);

function gen_id() {
  gen_seed += 1;
  return crc32(gen_seed, gen_seed_s).toString();
}

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
flok-0.0.105 app/kern/gen_id.js
flok-0.0.103 app/kern/gen_id.js
flok-0.0.102 app/kern/gen_id.js
flok-0.0.101 app/kern/gen_id.js
flok-0.0.100 app/kern/gen_id.js
flok-0.0.99 app/kern/gen_id.js
flok-0.0.98 app/kern/gen_id.js
flok-0.0.97 app/kern/gen_id.js
flok-0.0.96 app/kern/gen_id.js
flok-0.0.95 app/kern/gen_id.js
flok-0.0.94 app/kern/gen_id.js
flok-0.0.93 app/kern/gen_id.js
flok-0.0.92 app/kern/gen_id.js
flok-0.0.91 app/kern/gen_id.js
flok-0.0.90 app/kern/gen_id.js
flok-0.0.89 app/kern/gen_id.js
flok-0.0.88 app/kern/gen_id.js
flok-0.0.87 app/kern/gen_id.js
flok-0.0.86 app/kern/gen_id.js
flok-0.0.85 app/kern/gen_id.js