[llvm-bugs] [Bug 25105] New: RandomNumberGenerator incompatible with <random> distributions
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 8 00:44:20 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=25105
Bug ID: 25105
Summary: RandomNumberGenerator incompatible with <random>
distributions
Product: libraries
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: serge.guelton at telecom-bretagne.eu
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15030
--> https://llvm.org/bugs/attachment.cgi?id=15030&action=edit
Proposed patch
The ``RandomNumberGenerator`` class defined in
``llvm/Support/RandomNumberGenerator.h`` is not compatible with standard
distributions defined in ``<random>``. It misses the ``result_type`` typedef
and the static ``min()`` and ``max()`` functions, which makes it unusable in
practice.
A possible fix is given in attachment.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151008/95122129/attachment.html>
More information about the llvm-bugs
mailing list