Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Example showing the poor behavior of std::random_device on Linux with
- * GCC 4.7.3
- * Inspect the execution of this program with strace
- * Note how much entropy is read (and wasted) from /dev/urandom
- */
- #include <random>
- int main()
- {
- std::random_device dev;
- return dev();
- }
Advertisement
Add Comment
Please, Sign In to add comment