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

Issue 4342043: code review 4342043: crypto/rand: Fix on Plan 9

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 6 months ago by taruti
Modified:
12 years, 3 months ago
Reviewers:
ality
CC:
golang-dev, fhs, paulzhol, ality
Visibility:
Public.

Description

crypto/rand: Fix on Plan 9 Takes the currently unused prng code from rand_unix.go and puts it into a prng.go. Created a rand_plan9.go which uses /dev/random and prng.go. The dev_readers are not duplicate since the Plan 9 one lacks the bufio (it would be bad to try to read a whole buffer from /dev/random).

Patch Set 1 #

Patch Set 2 : diff -r f782663275a7 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 3 : diff -r f949db3f967b https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 93829d2e2028 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 1cad1e8470ba https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -85 lines) Patch
M src/pkg/crypto/rand/Makefile View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A src/pkg/crypto/rand/prng.go View 1 2 1 chunk +95 lines, -0 lines 0 comments Download
A src/pkg/crypto/rand/rand_plan9.go View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
M src/pkg/crypto/rand/rand_unix.go View 1 2 chunks +0 lines, -85 lines 0 comments Download

Messages

Total messages: 11
taruti
Please review.
14 years, 6 months ago (2011-04-02 16:22:34 UTC) #1
fhs
http://codereview.appspot.com/4342043/diff/2001/src/pkg/crypto/rand/prng.go File src/pkg/crypto/rand/prng.go (right): http://codereview.appspot.com/4342043/diff/2001/src/pkg/crypto/rand/prng.go#newcode17 src/pkg/crypto/rand/prng.go:17: // haven't needed it. This second sentence should go ...
14 years, 6 months ago (2011-04-03 05:07:45 UTC) #2
taruti
Hello golang-dev@googlegroups.com, fhs (cc: golang-dev@googlegroups.com, paulzhol), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 6 months ago (2011-04-03 16:33:06 UTC) #3
paulzhol
Fhs has a point about the duplicated parts and pkg time is not ready yet
14 years, 6 months ago (2011-04-03 16:44:42 UTC) #4
taruti
On Sun, 03 Apr 2011 16:44:42 +0000, paulzhol@gmail.com wrote: > Fhs has a point about ...
14 years, 6 months ago (2011-04-03 18:53:46 UTC) #5
paulzhol
On 2011/04/03 18:53:46, taruti wrote: > If you look at the code they are not ...
14 years, 6 months ago (2011-04-03 19:18:34 UTC) #6
ality
LGTM, once my time changeset is submitted.
14 years, 6 months ago (2011-04-04 09:22:46 UTC) #7
taruti
Hello golang-dev@googlegroups.com, fhs, paulzhol, ality (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2011-04-06 05:44:01 UTC) #8
ality
On 2011/04/06 05:44:01, taruti wrote: > Please take another look. Hey Taru, can you sync ...
14 years, 4 months ago (2011-06-20 08:10:08 UTC) #9
taruti
Hello golang-dev@googlegroups.com, fshahriar@gmail.com, paulzhol@gmail.com, ality@pbrane.org (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 4 months ago (2011-06-21 07:23:50 UTC) #10
ality
12 years, 3 months ago (2013-07-20 06:49:04 UTC) #11
This appears to have been fixed slightly differently on June 6th, 2012 (changeset c94261e6c85c). Moving reviewers to CC.
Sign in to reply to this message.

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