/* Round 'v' up to the next 'alignment'-byte aligned boundary. 'alignment' must
* be a power of 2. */
+#undef ALIGN /* NetBSD <sys/param.h> defines this already */
#define ALIGN(v, alignment) (((v) + ((alignment) - 1)) & ~((alignment) - 1))
/* Maximum number of bytes that can be allocated on the stack.
mempcpy(void *dst, const void *src, size_t n);
#endif
+/**************************
+ * Random number generation
+ **************************/
+
extern void
-randomize_byte_array(u8 *p, size_t n);
+get_random_bytes(void *p, size_t n);
extern void
-randomize_char_array_with_alnum(tchar *p, size_t n);
+get_random_alnum_chars(tchar *p, size_t n);
/************************
* Hashing and comparison