Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xoroshiro

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xoroshiro

  • 0.2.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Xoroshiro

This gem provides a port of the Xoroshiro256** pseudo-random number generator (PRNG) to Ruby. Xoroshiro offers excellent statistical performance and speed, matching or exceeding MT19937 (the PRNG underpinning Ruby's built-in Random class) in both categories.

Xoroshiro::rand is intended as a drop-in replacement for Kernel::rand, providing the same behavior given the same arguments. Enumeration is also provided via :each.

Timings on both MacOS and Windows show the gem's performance to be faster than Kernel::rand for generating both floating point and integer values—substantially so for the latter. You can confirm this for yourself by running the xoroshiro_timings.rb script provided in the gem's exe folder.

Installation

Install the gem by executing:

$ gem install xoroshiro

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 22 May 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc