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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user