summaryrefslogtreecommitdiffstats
path: root/base/rand_util.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 05:56:19 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 05:56:19 +0000
commit3818dd0a6c6cba069e6eb93f3983240b4195c06f (patch)
tree639ea4d25d078d31d2a8c33af8cca919664bb7fe /base/rand_util.h
parent4807d16a71a80a4010b478f0436fc6da747733e8 (diff)
downloadchromium_src-3818dd0a6c6cba069e6eb93f3983240b4195c06f.zip
chromium_src-3818dd0a6c6cba069e6eb93f3983240b4195c06f.tar.gz
chromium_src-3818dd0a6c6cba069e6eb93f3983240b4195c06f.tar.bz2
Sync: Do not generate non-UTF8 names for delete directives.
BUG=371184 Review URL: https://codereview.chromium.org/273283002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/rand_util.h')
-rw-r--r--base/rand_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/rand_util.h b/base/rand_util.h
index bae8c31..6130c12 100644
--- a/base/rand_util.h
+++ b/base/rand_util.h
@@ -39,10 +39,11 @@ BASE_EXPORT double BitsToOpenEndedUnitInterval(uint64 bits);
// See crypto/ for cryptographically secure random number generation APIs.
BASE_EXPORT void RandBytes(void* output, size_t output_length);
-// Fills a string of length |length| with with random data and returns it.
+// Fills a string of length |length| with random data and returns it.
// |length| should be nonzero.
//
// Note that this is a variation of |RandBytes| with a different return type.
+// The returned string is likely not ASCII/UTF-8. Use with care.
//
// WARNING:
// Do not use for security-sensitive purposes.