def load_file(filename, maxbytes=_unspecified):
    filename = _path_string(filename)

    if maxbytes is _unspecified:
        maxbytes = -1
    elif not isinstance(maxbytes, int):
        raise TypeError("maxbytes must be an integer")

    return _lib.RAND_load_file(filename, maxbytes)
Read *maxbytes* of data from *filename* and seed the PRNG with it.
dataset/ETHPy150Open pyca/pyopenssl/src/OpenSSL/rand.py/load_file