Random number generators discussion

Random number generators | www.agner.org

 
thread Source code for some C-functions - Arthur - 2009-04-02
last reply Source code for some C-functions - Agner - 2009-04-03
 
Source code for some C-functions
Author:  Date: 2009-04-02 19:24
Hi Agner,

I tried to build the random number generator library using the source code you provided. It looks like the source code for the following C-functions is not supplied:
MersRandomInit
MersRandomInitByArray
MersIRandomX
MersRandom
MersBRandom

The include files contain only definitions of the functions but I could not find the source code for them. Randomad32.dll exports these functions. Where can I find the source code for radomad32.dll which most likely has the source code for the aforementioned functions?

Thank you,
Arthur

   
Source code for some C-functions
Author: Agner Date: 2009-04-03 05:52
The functions you mention are the optimized assembly language versions. You have to link in the appropriate version of the library (*.lib, *.a) if you want to use these functions. If you use the C++ version of the same functions then you don't need to use the library.