27#ifndef mx_math_randomSeed_hpp
28#define mx_math_randomSeed_hpp
33#include "../mxError.hpp"
52template <
typename intT>
64 mxPError(
"randomSeed",
errno,
"error opening /dev/urandom" );
76 mxPError(
"randomSeed",
errno,
"Error on read from /dev/urandom." );
87 mxError(
"randomSeed",
MXE_FILERERR,
"Read from /dev/urandom did not return enough bytes" );
constexpr floatT six_fifths()
Return 6/5 in the specified precision.
int randomSeed(intT &seedval)
Get a value to use as a random seed.