[Bug libstdc++/67578] std::random_device::entropy() always returns 0

2017-05-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67578 --- Comment #6 from Jonathan Wakely --- N.B. we still return zero for the default random_device if using the RDRAND instruction. I don't know what we could do there, except maybe trust Intel and return the maximum value.

[Bug libstdc++/67578] std::random_device::entropy() always returns 0

2017-05-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67578 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/67578] std::random_device::entropy() always returns 0

2017-05-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67578 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Tue May 23 16:11:57 2017 New Revision: 248374 URL: https://gcc.gnu.org/viewcvs?rev=248374=gcc=rev Log: PR libstdc++/67578 Implement non-trivial std::random_device::entropy 2017-05-23

[Bug libstdc++/67578] std::random_device::entropy() always returns 0

2017-03-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67578 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/67578] std::random_device::entropy() always returns 0

2017-03-13 Thread ryxi at stu dot xidian.edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67578 --- Comment #2 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #1) > Or maybe we should keep the ABI unchanged and put all the implementation > in the header random.h? No. It would then pollute the global namespace with sys/ioctl.h and

[Bug libstdc++/67578] std::random_device::entropy() always returns 0

2017-03-12 Thread ryxi at stu dot xidian.edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67578 Xi Ruoyao changed: What|Removed |Added CC||ryxi at stu dot xidian.edu.cn --- Comment