JSPM

  • Created
  • Published
  • Downloads 188
  • Score
    100M100P100Q96461F
  • License BSD-2-Clause-Patent

Blockchain Commons Random Number Utilities for TypeScript

Package Exports

  • @bcts/rand

Readme

Blockchain Commons Random Number Utilities for TypeScript

Disclaimer: This package is under active development and APIs may change.

Introduction

rand exposes a uniform API for the random number primitives used in higher-level Blockchain Commons projects, including a cryptographically strong random number generator and a deterministic random number generator.

The crate also includes several convenience functions for generating secure and deterministic random numbers.

Rust Reference Implementation

This TypeScript implementation is based on bc-rand-rust v0.5.0 (commit).