sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #135: strcpy_random_1.patch

File strcpy_random_1.patch, 1.1 KB (added by Stefan Hoeche, 13 years ago)
  • ATOOLS/Math/Random.C

     
    240240  // Check if the first 20 bytes in file are a known identifier and
    241241  // set the activeGenerator variable accordingly
    242242  file.read(status.idTag, 16);
    243   if (strcmp(status.idTag,"Rnd4_G_Marsaglia"))
     243  if (strcmp(status.idTag,"Rnd4_GMarsaglia"))
    244244    { activeGenerator = 2; } else { activeGenerator = 4; }
    245245  file.close();
    246246 
     
    384384{
    385385   // mark Generator 4 as used one and set idTag for file output
    386386   activeGenerator = 4;
    387    strcpy(status.idTag, "Rnd4_G_Marsaglia");
     387   strcpy(status.idTag, "Rnd4_GMarsaglia");
    388388
    389389   // Init routine of the Random Generator Rnd4
    390390   double s,t;
     
    475475
    476476    char temp[16];
    477477    strncpy(temp,status.idTag,16);
    478     if (strcmp(temp, "Rnd4_G_Marsaglia")) {
     478    if (strcmp(temp, "Rnd4_GMarsaglia")) {
    479479      // Data read in was not from a RndGen of the same type
    480480      msg_Error()<<"WARNING in Random::ReadInStatus4: Data read from "
    481481                 <<filename<<" is not of the expected type."<<endl;