Import Geant4 11.4.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2025-06-26 09:17:29 +02:00
parent 20a218bbe1
commit a499fb82e9
1941 changed files with 203285 additions and 95593 deletions
@@ -31,13 +31,13 @@
#include "G4Types.hh"
#include <cstdint>
inline G4double G4QuickRand()
inline G4double G4QuickRand(uint32_t seed = 0)
{
static const G4double f = 1. / 4294967296.; // 2^-32
static const G4double f = 1. / 4294967296.; // 2^-32
// Algorithm "xor" from p.4 of G.Marsaglia, "Xorshift RNGs"
static G4ThreadLocal uint32_t y = 2463534242;
uint32_t x = y;
uint32_t x = uint32_t(seed == 0) * y + seed;
x ^= x << 13;
x ^= x >> 17;
x ^= x << 5;