shared/tests: add nmtst_rand_select_str() helper

This commit is contained in:
Thomas Haller 2021-03-16 11:56:14 +01:00
parent b377a7d0c9
commit a9e4d020cb
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -977,6 +977,8 @@ nmtst_rand_buf(GRand *rand, gpointer buffer, gsize buffer_length)
#define nmtst_rand_select(...) _nmtst_rand_select(NM_UNIQ, __VA_ARGS__)
#define nmtst_rand_select_str(x, ...) nmtst_rand_select((const char *) (x), ##__VA_ARGS__)
static inline void *
nmtst_rand_perm(GRand *rand, void *dst, const void *src, gsize elmt_size, gsize n_elmt)
{