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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void DefaultRandom::Reseed(const void* additional_entropy, size_t entropy_len) { | 54 void DefaultRandom::Reseed(const void* additional_entropy, size_t entropy_len) { |
55 // No such function exists in crypto/random.h. | 55 // No such function exists in crypto/random.h. |
56 } | 56 } |
57 | 57 |
58 DefaultRandom::DefaultRandom() { | 58 DefaultRandom::DefaultRandom() { |
59 } | 59 } |
60 | 60 |
61 } // namespace | 61 } // namespace |
62 | 62 |
63 // static | 63 // static |
64 QuicRandom* QuicRandom::GetInstance() { | 64 QuicRandom* QuicRandom::GetInstance() { return DefaultRandom::GetInstance(); } |
65 return DefaultRandom::GetInstance(); | |
66 } | |
67 | 65 |
68 } // namespace net | 66 } // namespace net |
OLD | NEW |