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

Unified Diff: crypto/random.h

Issue 6873156: Move crypto_helpers from sync to base (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move crypto_helpers to crypto instead of base. 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
Index: crypto/random.h
diff --git a/crypto/random.h b/crypto/random.h
new file mode 100644
index 0000000000000000000000000000000000000000..9366f1a7972f8e280f83f7c3857ad838fd00bcc3
--- /dev/null
+++ b/crypto/random.h
@@ -0,0 +1,14 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CRYPTO_RANDOM_H_
+#define CRYPTO_RANDOM_H_
+#pragma once
+
+#include <string>
+
+void GetRandomBytes(char* output, int output_length);
agl 2011/04/26 13:59:37 Needs a comment. The first argument should probabl
+std::string Generate128BitRandomHexString();
agl 2011/04/26 13:59:37 // Generate128BitRandomHexString returns a string
+
+#endif // CRYPTO_RANDOM_H_

Powered by Google App Engine
This is Rietveld 408576698