diff options
author | Gabriel Dos Reis <gdr@axiomatics.org> | 2015-12-31 14:56:12 -0800 |
---|---|---|
committer | Gabriel Dos Reis <gdr@axiomatics.org> | 2015-12-31 14:56:12 -0800 |
commit | f51aee83708673ef9941174951bec9aee80cb03c (patch) | |
tree | 4d8cfccd653dfa09819234bc61a8775091e4f1e6 /src/algebra/mfinfact.spad.pamphlet | |
parent | 039d244dbef31e4ca6d34d2cf42b58b41a572884 (diff) | |
download | open-axiom-f51aee83708673ef9941174951bec9aee80cb03c.tar.gz |
Avoid modulus bias in 'random()' usage.
Diffstat (limited to 'src/algebra/mfinfact.spad.pamphlet')
-rw-r--r-- | src/algebra/mfinfact.spad.pamphlet | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/mfinfact.spad.pamphlet b/src/algebra/mfinfact.spad.pamphlet index bca79804..c7d9645e 100644 --- a/src/algebra/mfinfact.spad.pamphlet +++ b/src/algebra/mfinfact.spad.pamphlet @@ -331,7 +331,7 @@ MultFiniteFactorize(OV,E,F,PG) : C == T -- This function has to be added to Eucliden domain ran(k1:Z) : R == - --if R case Integer then random()$R rem (2*k1)-k1 + --if R case Integer then random(2*k1)$R-k1 --else +/[monomial(random()$F,i)$R for i in 0..k1] |