Language lawyer note: std::random_device isn't guaranteed to be hardware-based, or anything in particular:
http://en.cppreference.com/w/cpp/numeric/random/random_devic...
(GNU libstdc++ will use rdrand if possible, otherwise it will read from /dev/urandom: https://gcc.gnu.org/git/?p=gcc.git;a=blob_plain;f=libstdc%2B...)