NIST Randomness Beacon

A gem wrapper for the NIST Randomness Beacon.

Inspiration: http://hackaday.com/2014/12/19/nist-randomness-beacon/ API Description: https://beacon.nist.gov/home

Installation

Add this line to your application's Gemfile:

gem 'nist_randomness_beacon'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nist_randomness_beacon

Usage

require 'nist_randomness_beacon'
record = NISTRandomnessBeacon::Client.new.last
# => NISTRandomnessBeacon::Record
record.output_value
# => "4838827EDEE67CD5F58139933709764D1C51B4FC362DCAAB06B1572AC533F15F648F5EA98C5276187EBB87148852AEE291DB735F821CDC04E53DD7331AB1D3B6"

Contributing

Pull requests welcome! Please see the contribution guide.