#include namespace crypto { struct prng { static unsigned int rand() { unsigned int v; RAND_bytes(reinterpret_cast(&v), sizeof(v)); return v; } }; } // namespace crypto