1
0
mirror of https://github.com/golang/go synced 2024-10-04 21:11:22 -06:00
go/src/pkg/big
Adam Langley 308064fc59 big: fix mistakes with probablyPrime
probablyPrime would return false negatives in some cases.

This code has now been tested against GMP for several million iterations without issues.

Fixes #638.

R=rsc
CC=golang-dev
https://golang.org/cl/252041
2010-03-05 15:55:26 -05:00
..
arith_386.s in C and asm, replace pkg·name with ·name 2010-01-25 18:52:55 -08:00
arith_amd64.s in C and asm, replace pkg·name with ·name 2010-01-25 18:52:55 -08:00
arith_arm.s in C and asm, replace pkg·name with ·name 2010-01-25 18:52:55 -08:00
arith_test.go 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
arith.go 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
int_test.go big: fix mistakes with probablyPrime 2010-03-05 15:55:26 -05:00
int.go big: fix ProbablyPrime bug, comments 2010-01-05 16:49:05 -08:00
Makefile go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00
nat_test.go 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
nat.go big: fix mistakes with probablyPrime 2010-03-05 15:55:26 -05:00