test_counter.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:privcount 作者: privcount 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号