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

Side by Side Diff: webrtc/base/helpers.h

Issue 1426443007: Revert of Adding the ability to create an RtpSender without a track. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « talk/libjingle_tests.gyp ('k') | webrtc/base/helpers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 21 matching lines...) Expand all
32 // We generate base64 values so that they will be printable. 32 // We generate base64 values so that they will be printable.
33 // Return false if the random number generator failed. 33 // Return false if the random number generator failed.
34 bool CreateRandomString(size_t length, std::string* str); 34 bool CreateRandomString(size_t length, std::string* str);
35 35
36 // Generates a (cryptographically) random string of the given length, 36 // Generates a (cryptographically) random string of the given length,
37 // with characters from the given table. Return false if the random 37 // with characters from the given table. Return false if the random
38 // number generator failed. 38 // number generator failed.
39 bool CreateRandomString(size_t length, const std::string& table, 39 bool CreateRandomString(size_t length, const std::string& table,
40 std::string* str); 40 std::string* str);
41 41
42 // Generates a (cryptographically) random UUID version 4 string.
43 std::string CreateRandomUuid();
44
45 // Generates a random id. 42 // Generates a random id.
46 uint32_t CreateRandomId(); 43 uint32_t CreateRandomId();
47 44
48 // Generates a 64 bit random id. 45 // Generates a 64 bit random id.
49 uint64_t CreateRandomId64(); 46 uint64_t CreateRandomId64();
50 47
51 // Generates a random id > 0. 48 // Generates a random id > 0.
52 uint32_t CreateRandomNonZeroId(); 49 uint32_t CreateRandomNonZeroId();
53 50
54 // Generates a random double between 0.0 (inclusive) and 1.0 (exclusive). 51 // Generates a random double between 0.0 (inclusive) and 1.0 (exclusive).
55 double CreateRandomDouble(); 52 double CreateRandomDouble();
56 53
57 } // namespace rtc 54 } // namespace rtc
58 55
59 #endif // WEBRTC_BASE_HELPERS_H_ 56 #endif // WEBRTC_BASE_HELPERS_H_
OLDNEW
« no previous file with comments | « talk/libjingle_tests.gyp ('k') | webrtc/base/helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698