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 @@ -439,6 +439,12 @@ InstallGlobalFunction( RecogniseGeneric,
439439
440440 if mandarins = fail then
441441 Assert (0 , depth = 0 );
442+ # Use SetPseudoRandomStamp or RandomElm
443+ # FIXME: double-check whether mandarins are not reused. Since
444+ # PseudoRandom may use RandomElm as the pseudorandomfunc it could
445+ # happen that the mandarins are reused.
446+ # I think we have to undo the hack to PseudoRandom or, even worse,
447+ # remove the mandarins from ri!.randr manually
442448 mandarins := List([ 1 .. NUM_MANDARINS] , i -> PseudoRandom(H));
443449 fi ;
444450
@@ -531,6 +537,7 @@ InstallGlobalFunction( RecogniseGeneric,
531537 Add(factorMandarins, y);
532538 # s := SLPforElement(ri, x);
533539 od ;
540+ # sort the factorMandarins and remove duplicates and trivials
534541
535542 # Try to recognise the factor a few times, then give up:
536543 counter := 0 ;
@@ -625,6 +632,7 @@ InstallGlobalFunction( RecogniseGeneric,
625632 Add( kernelMandarins, x / z );
626633 fi ;
627634 od ;
635+ # sort the kernelMandarins and remove duplicates and trivials
628636# kernelMandarins := rifac!.kernelMandarins
629637
630638 if Length(gensN(ri)) = 0 then
You can’t perform that action at this time.
0 commit comments