1acc60b03SMartin Matuska /* 2acc60b03SMartin Matuska * Copyright (c) 2003-2012 Tim Kientzle 3acc60b03SMartin Matuska * Copyright (c) 2012 Andres Mejia 4acc60b03SMartin Matuska * All rights reserved. 5acc60b03SMartin Matuska * 6acc60b03SMartin Matuska * Redistribution and use in source and binary forms, with or without 7acc60b03SMartin Matuska * modification, are permitted provided that the following conditions 8acc60b03SMartin Matuska * are met: 9acc60b03SMartin Matuska * 1. Redistributions of source code must retain the above copyright 10acc60b03SMartin Matuska * notice, this list of conditions and the following disclaimer. 11acc60b03SMartin Matuska * 2. Redistributions in binary form must reproduce the above copyright 12acc60b03SMartin Matuska * notice, this list of conditions and the following disclaimer in the 13acc60b03SMartin Matuska * documentation and/or other materials provided with the distribution. 14acc60b03SMartin Matuska * 15acc60b03SMartin Matuska * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 16acc60b03SMartin Matuska * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17acc60b03SMartin Matuska * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18acc60b03SMartin Matuska * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 19acc60b03SMartin Matuska * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20acc60b03SMartin Matuska * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21acc60b03SMartin Matuska * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22acc60b03SMartin Matuska * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23acc60b03SMartin Matuska * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24acc60b03SMartin Matuska * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25acc60b03SMartin Matuska */ 26acc60b03SMartin Matuska 27acc60b03SMartin Matuska #ifndef TEST_UTILS_H 28acc60b03SMartin Matuska #define TEST_UTILS_H 29acc60b03SMartin Matuska 30*833a452eSMartin Matuska #include <stddef.h> 31*833a452eSMartin Matuska #include <stdint.h> 32acc60b03SMartin Matuska 33*833a452eSMartin Matuska /* Fill a buffer with pseudorandom data */ 34*833a452eSMartin Matuska void fill_with_pseudorandom_data(void* buffer, size_t size); 35acc60b03SMartin Matuska 36acc60b03SMartin Matuska #endif /* TEST_UTILS_H */ 37