Go to file
JF Bastien f8ad92da5c Random Number Generator (llvm)
Summary:
Provides an abstraction for a random number generator (RNG) that produces a stream of pseudo-random numbers.
The current implementation uses C++11 facilities and is therefore not cryptographically secure.

The RNG is salted with the text of the current command line invocation.
In addition, a user may specify a seed (reproducible builds).

In clang, the seed can be set via
  -frandom-seed=X
In the back end, the seed can be set via
  -rng-seed=X

This is the llvm part of the patch.
clang part: D3391

Reviewers: ahomescu, rinon, nicholas, jfb

Reviewed By: jfb

Subscribers: jfb, perl

Differential Revision: http://reviews.llvm.org/D3390

llvm-svn: 211145
2014-06-18 06:23:25 +00:00
clang Replace some assert(0)'s with llvm_unreachable. 2014-06-18 05:13:13 +00:00
clang-tools-extra Prefix error_code with std. 2014-06-12 22:08:48 +00:00
compiler-rt [msan] Fix handling of multiplication by a constant with a number of trailing zeroes. 2014-06-17 09:23:12 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Fix definition of INFINITY and add NAN/HUGE_VAL[F] 2014-06-16 22:32:58 +00:00
libcxx Revert "fixes duplicate header installation" 2014-06-12 23:19:55 +00:00
libcxxabi Add a FAQ section, with a question about why the std::exception class destructors live in libc++abi 2014-06-11 16:54:09 +00:00
lld [PECOFF] Support COMDAT associative sections. 2014-06-17 16:19:33 +00:00
lldb Add locking around the m_owners collection in the breakpoint site. If we are in the middle of "BreakpointLocation::ShouldStop" we don't 2014-06-18 01:04:40 +00:00
llvm Random Number Generator (llvm) 2014-06-18 06:23:25 +00:00
openmp CMake: remove duplicated source file from list 2014-06-02 13:09:24 +00:00
polly Subject: [PATCH-v5] Detect and mark reduction like statements 2014-06-17 17:31:36 +00:00