This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: random_device implementation
- From: sotrdg sotrdg <euloanty at live dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 10 May 2018 23:50:53 +0000
- Subject: RE: random_device implementation
- References: <SN6PR15MB2302AD1914881DB09040C9F1B2840@SN6PR15MB2302.namprd15.prod.outlook.com>,<CADzB+2n4OJTovWd5BJMzLpyid=kbOujHphtO80q4eQnWgnFt_g@mail.gmail.com>
Hi libstdc++. Here is my rdseed+rtlgenrandom implementation of random_device for windows.
https://github.com/euloanty/mingw-std-random_device/blob/master/random_device_gcc_withcxx11abi/random.cc
I think rdrand should not be used for random_device since it is pseudo random which is not good for seeding.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Jason Merrill<mailto:jason@redhat.com>
Sent: Thursday, May 10, 2018 15:06
To: sotrdg sotrdg<mailto:euloanty@live.com>
Cc: libstdc++<mailto:libstdc++@gcc.gnu.org>; gcc-patches List<mailto:gcc-patches@gcc.gnu.org>
Subject: Re: random_device implementation
On Sat, May 5, 2018 at 8:34 PM, sotrdg sotrdg <euloanty@live.com> wrote:
> https://github.com/euloanty/mingw-std-random_device/blob/master/random_device_gcc_withcxx11abi/random.cc
It's best to CC the gcc-patches and libstdc++ lists on library contributions.
Jason