Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(28)

Issue 252041: code review 252041: big: fix mistakes with probablyPrime (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by agl1
Modified:
15 years, 5 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

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 issue 638.

Patch Set 1 #

Patch Set 2 : code review 252041: big: fix mistakes with probablyPrime #

Patch Set 3 : code review 252041: big: fix mistakes with probablyPrime #

Patch Set 4 : code review 252041: big: fix mistakes with probablyPrime #

Patch Set 5 : code review 252041: big: fix mistakes with probablyPrime #

Patch Set 6 : code review 252041: big: fix mistakes with probablyPrime #

Patch Set 7 : code review 252041: big: fix mistakes with probablyPrime #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M src/pkg/big/int_test.go View 2 chunks +5 lines, -2 lines 0 comments Download
M src/pkg/big/nat.go View 4 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 5
agl1
15 years, 5 months ago (2010-03-05 19:56:14 UTC) #1
rsc
LGTM thanks for digging in.
15 years, 5 months ago (2010-03-05 19:59:27 UTC) #2
agl1
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 5 months ago (2010-03-05 20:00:46 UTC) #3
aam
thanks! i was stuck in the same code trying ot figure it out today. here's ...
15 years, 5 months ago (2010-03-05 20:03:42 UTC) #4
agl1
15 years, 5 months ago (2010-03-05 20:55:31 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=19816b24c32c ***

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 issue 638.

R=rsc
CC=golang-dev
http://codereview.appspot.com/252041
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b