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

Side by Side Diff: srtp/crypto/replay/ut_sim.c

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Updated to libsrtp 1.5.1 Created 5 years, 10 months 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 | « srtp/crypto/replay/rdbx.c ('k') | srtp/crypto/rng/ctr_prng.c » ('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 * ut_sim.c 2 * ut_sim.c
3 * 3 *
4 * an unreliable transport simulator 4 * an unreliable transport simulator
5 * (for testing replay databases and suchlike) 5 * (for testing replay databases and suchlike)
6 * 6 *
7 * David A. McGrew 7 * David A. McGrew
8 * Cisco Systems, Inc. 8 * Cisco Systems, Inc.
9 */ 9 */
10 10
(...skipping 27 matching lines...) Expand all
38 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 38 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
39 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 39 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
41 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 41 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
42 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 42 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
43 * OF THE POSSIBILITY OF SUCH DAMAGE. 43 * OF THE POSSIBILITY OF SUCH DAMAGE.
44 * 44 *
45 */ 45 */
46 46
47 47
48 #ifdef HAVE_CONFIG_H
49 #include <config.h>
50 #endif
51
48 #include "ut_sim.h" 52 #include "ut_sim.h"
49 53
50 54
51 int 55 int
52 ut_compar(const void *a, const void *b) { 56 ut_compar(const void *a, const void *b) {
53 return rand() > (RAND_MAX/2) ? -1 : 1; 57 return rand() > (RAND_MAX/2) ? -1 : 1;
54 } 58 }
55 59
56 void 60 void
57 ut_init(ut_connection *utc) { 61 ut_init(ut_connection *utc) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 irecvd = ut_next_index(&utc); 100 irecvd = ut_next_index(&utc);
97 idiff = i - irecvd; 101 idiff = i - irecvd;
98 printf("%lu\t%lu\t%d\n", i, irecvd, idiff); 102 printf("%lu\t%lu\t%d\n", i, irecvd, idiff);
99 } 103 }
100 104
101 return 0; 105 return 0;
102 } 106 }
103 107
104 108
105 #endif 109 #endif
OLDNEW
« no previous file with comments | « srtp/crypto/replay/rdbx.c ('k') | srtp/crypto/rng/ctr_prng.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698