Changeset d6c852 in git


Ignore:
Timestamp:
Jul 6, 2020, 10:46:08 AM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
2ca80a7735f57cf908060cfb800bfa302c2afc8f
Parents:
9e20b9f7749f3bf1b809cdfca51f8fdbbc25e754f8d27e1651a82b4063c80d3de252b7aee270308f
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2020-07-06 10:46:08+02:00
git-committer:
GitHub <noreply@github.com>2020-07-06 10:46:08+02:00
Message:
Merge pull request #1015 from fingolfin/mh/fix-testsuite

Move FLINTrandom into factory to fix test suite crashes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/misc_ip.cc

    r9e20b9f rd6c852  
    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: ----------------------------------------------------
  • factory/cf_random.cc

    r9e20b9f rd6c852  
    1414#include "gfops.h"
    1515#include "imm.h"
     16
     17#ifdef HAVE_FLINT
     18extern "C"
     19{
     20#ifndef __GMP_BITS_PER_MP_LIMB
     21#define __GMP_BITS_PER_MP_LIMB GMP_LIMB_BITS
     22#endif
     23#include <flint/flint.h>
     24
     25GLOBAL_VAR flint_rand_t FLINTrandom;
     26}
     27#endif
    1628
    1729class RandomGenerator {
     
    174186}
    175187
     188
    176189void factoryseed ( int s )
    177190{
    178191    ranGen.seed( s );
     192
     193#ifdef HAVE_FLINT
     194    flint_randinit(FLINTrandom);
     195#endif
    179196}
Note: See TracChangeset for help on using the changeset viewer.