| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/crypto/quic_random.h" | 5 #include "net/quic/crypto/quic_random.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "crypto/random.h" | 9 #include "crypto/random.h" |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void DefaultRandom::Reseed(const void* additional_entropy, size_t entropy_len) { | 47 void DefaultRandom::Reseed(const void* additional_entropy, size_t entropy_len) { |
| 48 // No such function exists in crypto/random.h. | 48 // No such function exists in crypto/random.h. |
| 49 } | 49 } |
| 50 | 50 |
| 51 DefaultRandom::DefaultRandom() { | 51 DefaultRandom::DefaultRandom() { |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace | 54 } // namespace |
| 55 | 55 |
| 56 // static | 56 // static |
| 57 QuicRandom* QuicRandom::GetInstance() { return DefaultRandom::GetInstance(); } | 57 QuicRandom* QuicRandom::GetInstance() { |
| 58 return DefaultRandom::GetInstance(); |
| 59 } |
| 58 | 60 |
| 59 } // namespace net | 61 } // namespace net |
| OLD | NEW |