Open nemequ opened 7 years ago
µnit has some, like munit_rand_int_range. @jibsen, IIRC you did some work on those functions, would you mind if I relicensed them to public domain (CC0) and merged them into psnip?
Please feel free to do that (but we should probably resolve nemequ/munit#30 first).
µnit has some, like
munit_rand_int_range
. @jibsen, IIRC you did some work on those functions, would you mind if I relicensed them to public domain (CC0) and merged them into psnip?It would probably also be a good idea to provide
psnip_random_int
,psnip_random_double
… Ideally I'd like to just have a macro likeBut that's a GCC extension; IIRC clang and icc support it, but I don't think there is a way to implement it with MSVC. I think the best we'll be able to do is something like
With appropriate macros for the unused attribute and the inline keyword, of course.