Make this test more 32 bit friendly: allocate the most memory that fits into a native integer.

This will avoid triggering an OverflowError on 32 bit platforms but still be more memory than can ever actually be allocated.

Also fix the implementation to accept Python longs as well as Python ints.
diff --git a/OpenSSL/rand.py b/OpenSSL/rand.py
index de158f6..9be14ec 100644
--- a/OpenSSL/rand.py
+++ b/OpenSSL/rand.py
@@ -30,7 +30,7 @@
     :param num_bytes: The number of bytes to fetch
     :return: A string of random bytes
     """
-    if not isinstance(num_bytes, int):
+    if not isinstance(num_bytes, (int, long)):
         raise TypeError("num_bytes must be an integer")
 
     if num_bytes < 0: