Make sure the random generator is set
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Aug 2009 09:32:43 +0000 (09:32 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 Aug 2009 09:32:43 +0000 (09:32 +0000)
PYTHIA6/AliPythiaRndm.cxx

index 0bdddef..0dcb21c 100644 (file)
@@ -54,6 +54,7 @@ TRandom * AliPythiaRndm::GetPythiaRandom() {
   //
   // Retrieves the pointer to the random numbers generator
   //
+  if (!fgPythiaRandom) fgPythiaRandom=gRandom;
   return fgPythiaRandom;
 }