zoecarver 31dfaff3b3 [libc++] Change requirements on linear_congruential_engine.
This patch changes how linear_congruential_engine picks its randomization
algorithm. It adds two restrictions, `_OverflowOK` and `_SchrageOK`.
`_OverflowOK` means that m is a power of two so using the classic
`(a * x + c) % m` will create a meaningless overflow. The second checks
that Schrage's algorithm will produce results that are in bounds of min
and max. This patch fixes https://llvm.org/PR27839.

Differential Revision: D65041
2020-11-10 18:23:22 -08:00
..
2020-09-29 17:10:07 -07:00
2020-04-08 18:00:13 -04:00
2019-07-01 16:13:31 +00:00
2020-06-19 14:25:02 +05:30
2019-12-21 01:26:24 -08:00
2020-05-20 14:34:21 -04:00
2019-05-29 16:01:36 +00:00
2020-09-02 21:21:24 +02:00
2020-09-02 21:21:24 +02:00