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

Issue 13256052: code review 13256052: crypto/rand: use common buffer code on all systems

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by mxk
Modified:
10 years ago
Visibility:
Public.

Description

crypto/rand: use common buffer code on all systems Buffering is needed on Windows to avoid calling CryptGenRandom for each request. This change also simplifies unix code by moving the mutex to a single common type.

Patch Set 1 #

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

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

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -24 lines) Patch
M src/pkg/crypto/rand/rand.go View 1 2 chunks +20 lines, -1 line 0 comments Download
M src/pkg/crypto/rand/rand_test.go View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M src/pkg/crypto/rand/rand_unix.go View 1 5 chunks +4 lines, -17 lines 1 comment Download
M src/pkg/crypto/rand/rand_windows.go View 1 1 chunk +1 line, -6 lines 0 comments Download

Messages

Total messages: 20
mxk
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 7 months ago (2013-09-16 03:20:11 UTC) #1
brainman
LGTM Will have to wait for the brain trust to approve. Alex
10 years, 7 months ago (2013-09-16 04:00:05 UTC) #2
r
Although I am favorably inclined this does not address a documented issue.
10 years, 7 months ago (2013-09-16 05:10:39 UTC) #3
Dominik Honnef
Semi-documented at https://groups.google.com/d/msg/golang-dev/7JmxHbAyr-s/ZrIf1WnZ6_kJ
10 years, 7 months ago (2013-09-16 05:27:00 UTC) #4
r
That doesn't count. We're in a release phase and if we don't follow the rules ...
10 years, 7 months ago (2013-09-16 05:30:37 UTC) #5
brainman
On 2013/09/16 05:30:37, r wrote: > Fair enough. We'll have to wait till 1.2 is ...
10 years, 7 months ago (2013-09-16 05:37:38 UTC) #6
rsc
not lgtm sorry, too many lines changing for the freeze. i am also a little ...
10 years, 7 months ago (2013-09-16 15:18:02 UTC) #7
mxk
Benchmarks are below. Buffering makes a significant difference for small reads, but I don't know ...
10 years, 7 months ago (2013-09-16 16:29:30 UTC) #8
brainman
On 2013/09/16 15:18:02, rsc wrote: > not lgtm > > sorry, too many lines changing ...
10 years, 7 months ago (2013-09-17 02:03:57 UTC) #9
mxk
On Mon, Sep 16, 2013 at 10:03 PM, <alex.brainman@gmail.com> wrote: > If we are to ...
10 years, 7 months ago (2013-09-17 12:45:56 UTC) #10
brainman
On 2013/09/17 12:45:56, mxk wrote: > ... please include your benchmarks. > > Done. Thank ...
10 years, 7 months ago (2013-09-18 05:38:01 UTC) #11
gobot
R=rsc@golang.org (assigned by alex.brainman@gmail.com)
10 years, 4 months ago (2013-12-20 05:18:40 UTC) #12
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:25:57 UTC) #13
bradfitz
agl was recently looking into the pros and cons of buffering like this in openssl. ...
10 years, 3 months ago (2014-01-16 18:44:56 UTC) #14
brainman
On 2014/01/16 18:44:56, bradfitz wrote: > agl was recently looking into the pros and cons ...
10 years, 3 months ago (2014-01-17 03:13:19 UTC) #15
agl1
LGTM. I think this change is good. It might also serve as a common place ...
10 years, 3 months ago (2014-01-17 16:25:30 UTC) #16
agl1
p.s. will likely land next week unless there are objections.
10 years, 3 months ago (2014-01-17 16:27:21 UTC) #17
dfc
I would prefer to see more discussion on this change. the nil check in devReader ...
10 years, 3 months ago (2014-01-21 08:43:22 UTC) #18
dfc
On 2014/01/21 08:43:22, dfc wrote: > I would prefer to see more discussion on this ...
10 years, 3 months ago (2014-01-21 08:43:55 UTC) #19
rsc
10 years ago (2014-04-17 02:37:08 UTC) #20
R=close

Please run 'hg mail' after Go 1.3 is out and it will reopen this CL for us.
Thanks.
Sign in to reply to this message.

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