def try_adjust_count_signed(modulus):
'''
check that adjust_count_signed works as expected for modulus,
and a randomly chosen number between modulus_min and modulus
'''
# randrange is not uniformly distributed in python versions < 3.2
modulus_random = SystemRandom().randrange(modulus_min, modulus)
check_adjust_count_signed(modulus_random)
check_adjust_count_signed(modulus)
评论列表
文章目录