Build a better website in less than an hour with GoDaddy
Ad Get started today for FREE! no tech skills required. Get found on Google and top sites like Facebook

Intropy compile-time library

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