[PATCH] Implement non-trivial std::random_device::entropy (PR libstdc++/67578)

Jonathan Wakely jwakely@redhat.com
Mon May 22 14:10:00 GMT 2017


On 22/05/17 21:41 +0800, Xi Ruoyao wrote:
>On 2017-05-22 14:00 +0100, Jonathan Wakely wrote:
>> On 18/05/17 19:27 +0800, Xi Ruoyao wrote:
>> > This patch use ioctl to get entropy of std::random_device using
>> > /dev/random and /dev/urandom.
>>
>> This is a nice addition, thanks.
>>
>> N.B. I couldn't apply your patch, several lines had U+00A0 (i.e.
>> NO-BREAK SPACE) characters where normal spaces should be. I don't know
>> if this is something your mail client did, but maybe attaching the
>> patch as a multipart message rather than including it inline in the
>> body will prevent it in future.
>
>Oh no...  Seems my email client destroyed my patch. I'll attach the
>patch next time.  Please wait for PATCH v2.

OK, will do. I missed part of the required changes when adding a new
symbol version, see the attached patch.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170522/8b378aee/attachment.bin>


More information about the Gcc-patches mailing list