32#include "fastjet/internal/BasicRandom.hh"
34FASTJET_BEGIN_NAMESPACE
36#ifdef FASTJET_HAVE_LIMITED_THREAD_SAFETY
37std::mutex BasicRandom<int>::_multiple_number_generation_mutex;
38std::mutex BasicRandom<double>::_multiple_number_generation_mutex;
45int __default_random_generator(
int *__iseed)
47 int __k = __iseed[0]/53668;
48 __iseed[0] = (__iseed[0] - __k*53668)*40014 - __k*12211;
49 if(__iseed[0] < 0) __iseed[0] += 2147483563;
51 __k = __iseed[1]/52774;
52 __iseed[1] = (__iseed[1] - __k*52774)*40692 - __k*3791;
53 if(__iseed[1] < 0) __iseed[1] += 2147483399;
55 int __iz = __iseed[0] - __iseed[1];
56 if(__iz < 1) __iz += 2147483562;
62BasicRandom<int> _G_random_int;
63BasicRandom<double> _G_random_double;