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

Unified Diff: base/rand_util.h

Issue 6873156: Move crypto_helpers from sync to base (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Follow agl review Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/rand_util.cc » ('j') | chrome/browser/sync/util/user_settings.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/rand_util.h
diff --git a/base/rand_util.h b/base/rand_util.h
index 4e902da2f356ea666098ca3d34b73518f418833a..ae97b474857e73c1c941dec03b5de221ae54c619 100644
--- a/base/rand_util.h
+++ b/base/rand_util.h
@@ -29,6 +29,10 @@ BASE_API uint64 RandGenerator(uint64 max);
// Returns a random double in range [0, 1). Thread-safe.
BASE_API double RandDouble();
+// fills |output_length| bytes of |output| with cryptographically strong random
brettw 2011/05/03 17:36:53 Be sure all comments are complete sentences with c
+// data.
+BASE_API void RandBytes(void* output, size_t output_length);
+
// Returns a random string of the specified length.
BASE_API std::string RandBytesAsString(size_t length);
brettw 2011/05/03 17:36:53 Can you update the comment for this function so it
« no previous file with comments | « no previous file | base/rand_util.cc » ('j') | chrome/browser/sync/util/user_settings.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698