File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,12 @@ InstallGlobalFunction( RecogniseGeneric,
410410
411411 if mandarins = fail then
412412 Assert (0 , depth = 0 );
413+ # Use SetPseudoRandomStamp or RandomElm
414+ # FIXME: double-check whether mandarins are not reused. Since
415+ # PseudoRandom may use RandomElm as the pseudorandomfunc it could
416+ # happen that the mandarins are reused.
417+ # I think we have to undo the hack to PseudoRandom or, even worse,
418+ # remove the mandarins from ri!.randr manually
413419 mandarins := List([ 1 .. NUM_MANDARINS] , i -> PseudoRandom(H));
414420 fi ;
415421
@@ -502,6 +508,7 @@ InstallGlobalFunction( RecogniseGeneric,
502508 Add(factorMandarins, y);
503509 # s := SLPforElement(ri, x);
504510 od ;
511+ # sort the factorMandarins and remove duplicates and trivials
505512
506513 # Try to recognise the factor a few times, then give up:
507514 counter := 0 ;
@@ -596,6 +603,7 @@ InstallGlobalFunction( RecogniseGeneric,
596603 Add( kernelMandarins, x / z );
597604 fi ;
598605 od ;
606+ # sort the kernelMandarins and remove duplicates and trivials
599607# kernelMandarins := rifac!.kernelMandarins
600608
601609 if Length(gensN(ri)) = 0 then
You can’t perform that action at this time.
0 commit comments