New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

splitmix

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

splitmix

A splittable random number generator using the SplitMix algorithm from "Fast Splittable Pseudorandom Number Generators" by Steele, Lea, and Flood.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

SplitMix

This random number generator is NOT suitable for cryptographic applications.

Implements the SplitMix algorithm from Fast Splittable Pseudorandom Number Generators by Steele, Lea, and Flood.

See the API docs here.

This provides a splittable random number generator.

Both a functional and a mutable interface are provided. The functional interface matches the node-lcg library. It should be drop-in compatible. The node-lcg is based on Distributed random number generation by Burton and Page. As far as I know, its statistical properties haven't been tested with DieHard or TestU01 unlike the SplitMix algorithm (but not this implementation). Being from 1992 and based on a linear congruential generator, it is not likely to perform well statistically.

It is tested to produce the same values as the Haskell SplitMix implementation.

Keywords

random

FAQs

Package last updated on 26 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts