Index: base/crypto/symmetric_key.h |
diff --git a/base/crypto/symmetric_key.h b/base/crypto/symmetric_key.h |
index b72c840614f6df03ecd658452a9e0b81c86498ab..f7311b39960faedad78ac702bc3ab6b5fdf90512 100644 |
--- a/base/crypto/symmetric_key.h |
+++ b/base/crypto/symmetric_key.h |
@@ -34,6 +34,9 @@ class BASE_API SymmetricKey { |
virtual ~SymmetricKey(); |
+ // Generates cryptographically strong random bytes. Returns true on success. |
+ static bool GenerateRandomBytes(size_t size_in_bits, uint8* out); |
+ |
// Generates a random key suitable to be used with |algorithm| and of |
// |key_size_in_bits| bits. |
// The caller is responsible for deleting the returned SymmetricKey. |