s3: Fix the clustering build
[mat/samba.git] / lib / util / genrand.c
index b8d3c78fa11be4311e76948bc9090596afa14366..57884ef791fb6a14ba02abd44fc260da9e81a20b 100644 (file)
@@ -173,7 +173,7 @@ static int do_reseed(bool use_fd, int fd)
                if (fd == -1) {
                        fd = open( "/dev/urandom", O_RDONLY,0);
                        if (fd != -1) {
-                               set_close_on_exec(fd);
+                               smb_set_close_on_exec(fd);
                        }
                }
                if (fd != -1
@@ -236,7 +236,7 @@ _PUBLIC_ void generate_random_buffer(uint8_t *out, int len)
                        if (urand_fd == -1) {
                                urand_fd = open( "/dev/urandom", O_RDONLY,0);
                                if (urand_fd != -1) {
-                                       set_close_on_exec(urand_fd);
+                                       smb_set_close_on_exec(urand_fd);
                                }
                        }
                        if(urand_fd != -1 && (read(urand_fd, out, len) == len)) {
@@ -276,7 +276,7 @@ _PUBLIC_ void generate_secret_buffer(uint8_t *out, int len)
        if (urand_fd == -1) {
                urand_fd = open( "/dev/urandom", O_RDONLY,0);
                if (urand_fd != -1) {
-                       set_close_on_exec(urand_fd);
+                       smb_set_close_on_exec(urand_fd);
                }
        }
        if(urand_fd != -1 && (read(urand_fd, out, len) == len)) {