[llvm] r211705 - Random Number Generator (llvm)

Chris Lattner clattner at apple.com
Mon Jun 30 09:01:55 PDT 2014


On Jun 25, 2014, at 8:21 AM, JF Bastien <jfb at google.com> wrote:

> Author: jfb
> Date: Wed Jun 25 10:21:42 2014
> New Revision: 211705
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=211705&view=rev
> Log:
> Random Number Generator (llvm)
> 
> 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.

Hi JF,

This looks interesting, but why is there a pointer from llvm::Module to this?  This doesn’t seem like part of the IR structure of a file, and isn’t serializable into bitcode or .ll files.  Unless I’m missing something big here, this should not be part of llvm::Module.

-Chris





More information about the llvm-commits mailing list