1 /*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
4 * File: $Id: EvtStdlibRandomEngine.hh,v 1.2 2009-03-16 16:39:15 robbep Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
11 * Interface to stdlib's random number generator
14 #ifndef EVT_STDLIB_RANDOM_ENGINE_HH
15 #define EVT_STDLIB_RANDOM_ENGINE_HH
19 #include "EvtGenBase/EvtRandomEngine.hh"
21 class EvtStdlibRandomEngine : public EvtRandomEngine {
24 void setSeed(unsigned int seed)
27 gRandom->SetSeed(seed);
30 virtual double random()
35 return gRandom->Rndm();