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

Issue 6457085: code review 6457085: crypto/rand: Example for Read. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by nictuku
Modified:
12 years, 6 months ago
Reviewers:
CC:
adg, remyoudompheng, rsc, r, golang-dev
Visibility:
Public.

Description

crypto/rand: Example for Read.

Patch Set 1 #

Patch Set 2 : diff -r 0e114e4df4ec https://code.google.com/p/go #

Patch Set 3 : diff -r 0e114e4df4ec https://code.google.com/p/go #

Total comments: 1

Patch Set 4 : diff -r 0e114e4df4ec https://code.google.com/p/go #

Patch Set 5 : diff -r 0e114e4df4ec https://code.google.com/p/go #

Patch Set 6 : diff -r 0e114e4df4ec https://code.google.com/p/go #

Total comments: 2

Patch Set 7 : diff -r 0e114e4df4ec https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
A src/pkg/crypto/rand/example_test.go View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 9
nictuku
Hello adg (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 9 months ago (2012-08-06 20:25:49 UTC) #1
remyoudompheng
http://codereview.appspot.com/6457085/diff/5001/src/pkg/crypto/rand/example_test.go File src/pkg/crypto/rand/example_test.go (right): http://codereview.appspot.com/6457085/diff/5001/src/pkg/crypto/rand/example_test.go#newcode28 src/pkg/crypto/rand/example_test.go:28: fmt.Println(reflect.DeepEqual(b, make([]byte, count))) i think a user-oriented example should ...
12 years, 9 months ago (2012-08-06 20:27:02 UTC) #2
rsc
The example should use io.ReadFull.
12 years, 9 months ago (2012-08-06 20:29:54 UTC) #3
nictuku
On Mon, Aug 6, 2012 at 10:27 PM, <remyoudompheng@gmail.com> wrote: > > http://codereview.appspot.com/6457085/diff/5001/src/pkg/crypto/rand/example_test.go > File ...
12 years, 9 months ago (2012-08-06 20:29:56 UTC) #4
nictuku
Please have another look. I also tried to change from ExampleRead() to ExampleReader() which seemed ...
12 years, 9 months ago (2012-08-06 20:42:37 UTC) #5
r
http://codereview.appspot.com/6457085/diff/11001/src/pkg/crypto/rand/example_test.go File src/pkg/crypto/rand/example_test.go (right): http://codereview.appspot.com/6457085/diff/11001/src/pkg/crypto/rand/example_test.go#newcode14 src/pkg/crypto/rand/example_test.go:14: func ExampleRead() { there should be a comment here.
12 years, 9 months ago (2012-08-07 03:44:27 UTC) #6
nictuku
http://codereview.appspot.com/6457085/diff/11001/src/pkg/crypto/rand/example_test.go File src/pkg/crypto/rand/example_test.go (right): http://codereview.appspot.com/6457085/diff/11001/src/pkg/crypto/rand/example_test.go#newcode14 src/pkg/crypto/rand/example_test.go:14: func ExampleRead() { On 2012/08/07 03:44:27, r wrote: > ...
12 years, 9 months ago (2012-08-08 01:25:14 UTC) #7
adg
LGTM
12 years, 9 months ago (2012-08-08 01:40:52 UTC) #8
adg
12 years, 9 months ago (2012-08-08 02:05:02 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=4738fd47e7a9 ***

crypto/rand: Example for Read.

R=adg, remyoudompheng, rsc, r
CC=golang-dev
http://codereview.appspot.com/6457085

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

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