random.org
A https://random.org client library. The randomness comes from atmospheric noise, which for many purposes is better than the pseudo-random number algorithms typically used in computer programs.
Status
Everything is implemented. Note, that the random.org service
API is at beta stage of development, however the library will try to be up-to-date.
The documentation
The documentation which may help you using this library.
Implementation
- Immutable interface, no need to synchronize,
thread-safe (
SyncandSend). - No unsafe blocks.
reqwestcrate is used for performing requests.chronofor dates.serdefor serialization and deserialization.
Features
randfeature which provides therand_core::RngCoretrait implementation for theRandomstruct and adds newFallibleRandom<T: rand_core::RngCore>structure for better random generation UX.
Usage
Start by creating Random instance and perform needed operations after.
extern crate randomorg;
With the rand feature you can also use it that way:
extern crate randomorg;
License
This project is licensed under the MIT license.