public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* where are the implementations for <random>?
@ 2017-04-09 17:31 Oliver Kullmann
  2017-04-09 18:24 ` Marc Glisse
  2018-12-21 12:34 ` wrong sha512 values for 7.4.0 ? Oliver Kullmann
  0 siblings, 2 replies; 10+ messages in thread
From: Oliver Kullmann @ 2017-04-09 17:31 UTC (permalink / raw)
  To: gcc-help

Hello,

I thought that with the facilities from <random> we had good and
well-defined ones -- but alas, only recently I realised that only say
the Mersenne twister is well-defined in the standard, but roughly
everything else is up to the implementer.

Since reproducibility is crucial for us (as with most scientific
applications), thus we need to implement ourselves the algorithms for

1. std::seed_seq
2. std::uniform_int_distribution
3. std::bernoulli_distribution (only for default p=0.5).

Easiest would be to copy (and specialise) the gcc-implementations.
I searched for it in the source-code, but couldn't find it:

Where do I find the implementations for <random> ?

Thanks for your help!

Oliver

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-12-20 18:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-09 17:31 where are the implementations for <random>? Oliver Kullmann
2017-04-09 18:24 ` Marc Glisse
2017-04-09 23:32   ` Martin Sebor
2017-04-11 13:03     ` Oliver Kullmann
2017-04-11 18:26       ` Oliver Kullmann
2017-04-11 20:17         ` Oliver Kullmann
2017-04-11 20:27           ` Jonathan Wakely
2017-04-12  3:41             ` Oliver Kullmann
2017-04-12  5:01               ` Oliver Kullmann
2018-12-21 12:34 ` wrong sha512 values for 7.4.0 ? Oliver Kullmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).