-
Augusto Henrique Hentz authored
Rand() is equal to rand(), but thread-safe on unix, by means of a static mutex. It takes an optional RandomState* argument, in order to avoid using the mutex in performance-critical code. The functions RandInt, WithProb, RandUniform, RandGauss, RandPoisson and RandPrune now take an optional RandomState* argument. Created the RandGauss2 function, which allows to create two random gaussian numbers in one shot (optimization of RandGauss). Optimization of vector and matrix random set methods. git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4292 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
8fee635c