@agoric/sparse-ints

Share code across vat boundaries

Usage no npm install needed!

<script type="module">
  import agoricSparseInts from 'https://cdn.skypack.dev/@agoric/sparse-ints';
</script>

README

Sparse Ints

Generator function to produce a stream of positive integers that are sparsely scattered across the number space. This supports IDs that are guessable, but for example mistyping a correct ID is unlikely to mistakenly match another generated ID.