1 #include <gtest/gtest.h>
2 
3 #include "AllocationTestHarness.h"
4 
5 #include "osi/include/osi.h"
6 
7 class RandTest : public AllocationTestHarness {};
8 
9 TEST_F(RandTest, test_rand) {
10   // We can't guarantee any distribution
11   // We'd like it to not crash though.
12   for (int i = 0; i < 10; i++) {
13     int x;
14     x = osi_rand();
15     EXPECT_TRUE(x >= 0);
16   }
17 }
18