Changeset d6c852 in git
- Timestamp:
- Jul 6, 2020, 10:46:08 AM (3 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- 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
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/misc_ip.cc
r9e20b9f rd6c852 1328 1328 * initialize components of Singular 1329 1329 */ 1330 #ifdef HAVE_FLINT1331 extern "C"1332 {1333 GLOBAL_VAR flint_rand_t FLINTrandom;1334 }1335 #endif1336 1337 1330 void siInit(char *name) 1338 1331 { … … 1397 1390 siRandomStart=t; 1398 1391 feOptSpec[FE_OPT_RANDOM].value = (void*) ((long)siRandomStart); 1399 #ifdef HAVE_FLINT1400 flint_randinit(FLINTrandom);1401 #endif1402 1392 1403 1393 // ressource table: ---------------------------------------------------- -
factory/cf_random.cc
r9e20b9f rd6c852 14 14 #include "gfops.h" 15 15 #include "imm.h" 16 17 #ifdef HAVE_FLINT 18 extern "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 25 GLOBAL_VAR flint_rand_t FLINTrandom; 26 } 27 #endif 16 28 17 29 class RandomGenerator { … … 174 186 } 175 187 188 176 189 void factoryseed ( int s ) 177 190 { 178 191 ranGen.seed( s ); 192 193 #ifdef HAVE_FLINT 194 flint_randinit(FLINTrandom); 195 #endif 179 196 }
Note: See TracChangeset
for help on using the changeset viewer.