static int read_random(uint32_t *dst, const char *file)

{

    int fd = open(file, O_RDONLY);

    int err = -1;



    if (fd == -1)

        return -1;

#if HAVE_FCNTL && defined(O_NONBLOCK)

    if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK) != -1)

#endif

        err = read(fd, dst, sizeof(*dst));

    close(fd);



    return err;

}

static int read_random(uint32_t *dst, const char *file)

{

    int fd = open(file, O_RDONLY);

    int err = -1;



    if (fd == -1)

        return -1;

#if HAVE_FCNTL && defined(O_NONBLOCK)

    if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK) != -1)

#endif

        err = read(fd, dst, sizeof(*dst));

    close(fd);



    return err;

}

#if HAVE_FCNTL && defined(O_NONBLOCK)     if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK) != -1) #endif
static int FUNC_0(uint32_t *VAR_0, const char *VAR_1)

{

    int VAR_2 = open(VAR_1, O_RDONLY);

    int VAR_3 = -1;



    if (VAR_2 == -1)

        return -1;

#if HAVE_FCNTL && defined(O_NONBLOCK)

    if (fcntl(VAR_2, F_SETFL, fcntl(VAR_2, F_GETFL) | O_NONBLOCK) != -1)

#endif

        VAR_3 = read(VAR_2, VAR_0, sizeof(*VAR_0));

    close(VAR_2);



    return VAR_3;

}

static int FUNC_0(uint32_t *VAR_0, const char *VAR_1)
{ int VAR_2 = open(VAR_1, O_RDONLY); int VAR_3 = -1; if (VAR_2 == -1)
return -1; #if HAVE_FCNTL && defined(O_NONBLOCK)
if (fcntl(VAR_2, F_SETFL, fcntl(VAR_2, F_GETFL) | O_NONBLOCK) != -1)
#endif
VAR_3 = read(VAR_2, VAR_0, sizeof(*VAR_0)); close(VAR_2); return VAR_3; }