Changeset 08daea in git for factory/cf_random.cc


Ignore:
Timestamp:
Nov 22, 2010, 11:12:46 AM (13 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
fb8ba2756f35787214f1a0b5702e31e4b853de97
Parents:
cde7084dc141670809afd29cafbd9c571bd9fc3a
Message:
new ezgcd, heuristic which gcd to choose and sparse modular gcd all for finite fields


git-svn-id: file:///usr/local/Singular/svn/trunk@13661 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_random.cc

    rcde708 r08daea  
    6565CanonicalForm GFRandom::generate () const
    6666{
    67     return CanonicalForm( int2imm_gf( factoryrandom( gf_q ) ) );
     67    int i= factoryrandom( gf_q );
     68    if ( i == gf_q1 ) i++;
     69    return CanonicalForm( int2imm_gf( i ) );
    6870}
    6971
Note: See TracChangeset for help on using the changeset viewer.