Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Issue 455593004: Subzero: Add a random number generator. (Closed)

Created:
6 years, 4 months ago by wala
Modified:
6 years, 4 months ago
Reviewers:
Jim Stichnoth
CC:
JF
Base URL:
https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Subzero: Add a random number generator. This is inital work necessary for diversification support in Subzero. The random number generator implementation is temporary. It will eventually use a cryptographically secure pseudorandom number generator (perhaps from LLVM, if LLVM gets one). Add the -rng-seed= option to seed the random number generator from the command line. BUG=none R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=1bd2fce

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments, be compatible with LLVM interface #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -1 line) Patch
M Makefile.standalone View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A src/IceRNG.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A src/IceRNG.cpp View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
wala
6 years, 4 months ago (2014-08-08 00:39:03 UTC) #1
Jim Stichnoth
LGTM with nits. https://codereview.chromium.org/455593004/diff/1/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/455593004/diff/1/src/IceGlobalContext.cpp#newcode34 src/IceGlobalContext.cpp:34: cl::init(1)); Can you default initialize to ...
6 years, 4 months ago (2014-08-08 05:05:38 UTC) #2
native-client-reviews_googlegroups.com
Could you make sure that the approach take here is the same as in LLVM? ...
6 years, 4 months ago (2014-08-08 06:15:08 UTC) #3
wala
https://codereview.chromium.org/455593004/diff/1/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/455593004/diff/1/src/IceGlobalContext.cpp#newcode34 src/IceGlobalContext.cpp:34: cl::init(1)); On 2014/08/08 05:05:38, stichnot wrote: > Can you ...
6 years, 4 months ago (2014-08-08 16:36:13 UTC) #4
wala
I've changed the interface to be the same as LLVM's random number generator. It's also ...
6 years, 4 months ago (2014-08-08 16:37:04 UTC) #5
wala
6 years, 4 months ago (2014-08-08 21:02:13 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as 1bd2fce (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698