X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=super-ddf.c;h=c28d8040895950c01c7adf9a5dedb96d05a8813e;hp=0b1527591029808e445cd58176607174b6dbd8e2;hb=148acb7baaa810b68d55df4c1784d6bd0dfd1b78;hpb=329c82786932b2fbc56cd57ac0bfc185d83a04c9 diff --git a/super-ddf.c b/super-ddf.c index 0b152759..c28d8040 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1512,17 +1512,6 @@ static int update_super_ddf(struct supertype *st, struct mdinfo *info, return rv; } -__u32 random32(void) -{ - __u32 rv; - int rfd = open("/dev/urandom", O_RDONLY); - if (rfd < 0 || read(rfd, &rv, 4) != 4) - rv = random(); - if (rfd >= 0) - close(rfd); - return rv; -} - static void make_header_guid(char *guid) { __u32 stamp;