19 constexpr
double HIVENUMBERS_BUFFER_SIZE = 1000;
31 : m_buffer_index( 0 ), m_buffer_size( HIVENUMBERS_BUFFER_SIZE ), m_generator( copy.m_generator ) {
38 : m_buffer_index( 0 ), m_buffer_size( HIVENUMBERS_BUFFER_SIZE ), m_generator( 0 ) {
41 if ( !status.
isSuccess() ) {
throw GaudiException(
"Initialization failed !",
"HiveRndm::HiveNumbers", status ); }
49 if ( svc.
isValid() && 0 == m_generator ) {
52 return svc->generator(
par, m_generator );
59 if ( 0 != m_generator ) {
60 m_generator->finalize().
ignore();
61 m_generator->release();
67 #if !defined( GAUDI_V22_API ) || defined( G22_NEW_SVCLOCATOR )
68 # pragma GCC diagnostic push
69 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
72 : m_buffer_index( 0 ), m_buffer_size( HIVENUMBERS_BUFFER_SIZE ), m_generator( 0 ) {
74 if ( !status.
isSuccess() ) {
throw GaudiException(
"Initialization failed !",
"HiveRndm::HiveNumbers", status ); }
81 # pragma GCC diagnostic pop