Changeset f8d27e1 in git for Singular/misc_ip.cc


Ignore:
Timestamp:
Jul 6, 2020, 12:23:58 AM (4 years ago)
Author:
Max Horn <max@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d6c852edab73f91c0b7fd573de9f4cb9c4880d7b
Parents:
9e20b9f7749f3bf1b809cdfca51f8fdbbc25e754
Message:
Move FLINTrandom into factory to fix test suite crashes

Without this, `make check` runs into segfaults in tests that use factory but
not the full Singular library, as factory accesses FLINTrandom but does not
contain its definition.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/misc_ip.cc

    r9e20b9f rf8d27e1  
    13281328* initialize components of Singular
    13291329*/
    1330 #ifdef HAVE_FLINT
    1331 extern "C"
    1332 {
    1333 GLOBAL_VAR flint_rand_t FLINTrandom;
    1334 }
    1335 #endif
    1336 
    13371330void siInit(char *name)
    13381331{
     
    13971390  siRandomStart=t;
    13981391  feOptSpec[FE_OPT_RANDOM].value = (void*) ((long)siRandomStart);
    1399   #ifdef HAVE_FLINT
    1400   flint_randinit(FLINTrandom);
    1401   #endif
    14021392
    14031393// ressource table: ----------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.