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