| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BIN_CRYPTO_H_ | 5 #ifndef BIN_CRYPTO_H_ |
| 6 #define BIN_CRYPTO_H_ | 6 #define BIN_CRYPTO_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 | 10 |
| 11 | |
| 12 namespace dart { | 11 namespace dart { |
| 13 namespace bin { | 12 namespace bin { |
| 14 | 13 |
| 15 class Crypto { | 14 class Crypto { |
| 16 public: | 15 public: |
| 17 static bool GetRandomBytes(intptr_t count, uint8_t* buffer); | 16 static bool GetRandomBytes(intptr_t count, uint8_t* buffer); |
| 18 | 17 |
| 19 private: | 18 private: |
| 20 DISALLOW_ALLOCATION(); | 19 DISALLOW_ALLOCATION(); |
| 21 DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto); | 20 DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto); |
| 22 }; | 21 }; |
| 23 | 22 |
| 24 } // namespace bin | 23 } // namespace bin |
| 25 } // namespace dart | 24 } // namespace dart |
| 26 | 25 |
| 27 #endif // BIN_CRYPTO_H_ | 26 #endif // BIN_CRYPTO_H_ |
| 28 | 27 |
| OLD | NEW |