1 from ctypescrypto.rand import *
4 class TestRand(unittest.TestCase):
7 self.assertEqual(len(b),100)
9 self.assertNotEqual(b,b2)
10 def test_pseudo_bytes(self):
12 self.assertEqual(len(b),100)
14 self.assertNotEqual(b,b2)
16 b="aaqwrwfsagdsgdsfgdsfgdfsgdsfgdsgfdsfgdsfg"
18 # Check if no segfault here
19 def test_entropy(self):
20 b="aaqwrwfsagdsgdsfgdsfgdfsgdsfgdsgfdsfgdsfg"
22 # Check if no segfault here
23 def test_Status(self):
27 if __name__ == '__main__':