memcpy test fix build warning on openbsd. (#714)

* memcpy test fix build warning on openbsd.

* enabling TEST_LIMITED for openbsd too.
This commit is contained in:
David CARLIER
2024-12-18 12:42:26 +00:00
committed by GitHub
parent 57c88efccb
commit 6952683692
2 changed files with 18 additions and 3 deletions

View File

@@ -13,7 +13,14 @@ struct Shape
size_t my_random()
{
#ifndef __OpenBSD__
return (size_t)rand();
#else
// OpenBSD complains on rand() usage
// we let it know we purposely want
// deterministic randomness here
return (size_t)lrand48();
#endif
}
std::vector<Shape> allocs;