Intropy compile-time library

Description

This high performance compile-time library is useful for obtaining random numbers from stdin during run-time, enabling the user to choose one file, stream or keyboard as source of entropy.

Use

#include<ncomputers/Intropy.hpp>
#define BlockSize 512 //optional
using namespace ncomputers;
Intropy<unsigned,BlockSize>rand;
unsigned num=rand();
#!/bin/bash
random | binary
binary < /dev/random
binary < /dev/null
binary < file

Install

#ncomputers.org/debian
apt-get install intropy
#makefile as su
make install

Compile

g++ -O3 -std=c++11 source.cpp -o binary