This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: out-of-line and arch-specific random_device


Ulrich Drepper <drepper@gmail.com> writes:
>
> Anyway, another change in the patch is support for a less expensive
> implementation on Ivy Bridge processors.  That processor has the
> rdrand instruction.  The code uses it if the instruction is usable.
> Has been tested on real hardware.  This is not the type of
> arch-specific code I meant earlier.  Will get to that tomorrow.

RDRAND is more for cryptographic purposes (key generation etc.), it's not
supposed to replace pseudo random generators for simulations.

For those you likely want a repeatable stream anyways, otherwise it'll
be impossible to debug.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]