… | |
… | |
31 | #include <sys/time.h> |
31 | #include <sys/time.h> |
32 | #include <time.h> |
32 | #include <time.h> |
33 | #include <signal.h> |
33 | #include <signal.h> |
34 | |
34 | |
35 | #include <global.h> |
35 | #include <global.h> |
36 | #include <funcpoint.h> |
|
|
37 | #include <material.h> |
36 | #include <material.h> |
38 | |
37 | |
39 | #include <glib.h> |
38 | #include <glib.h> |
40 | |
39 | |
41 | refcnt_base::refcnt_t refcnt_dummy; |
40 | refcnt_base::refcnt_t refcnt_dummy; |
42 | ssize_t slice_alloc; |
41 | ssize_t slice_alloc; |
43 | rand_gen rndm; |
42 | rand_gen rndm, rmg_rndm; |
44 | |
43 | |
45 | void |
44 | void |
46 | tausworthe_random_generator::seed (uint32_t seed) |
45 | tausworthe_random_generator::seed (uint32_t seed) |
47 | { |
46 | { |
48 | state [0] = seed * 69069U; if (state [0] < 2U) state [0] += 2U; |
47 | state [0] = seed * 69069U; if (state [0] < 2U) state [0] += 2U; |