X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fsplit.c;h=3f4a7d0a87a170805de89b7cf2072962a6396d67;hp=88f9b2bd0feb844d7294ff499cf39693e3e8f1da;hb=3df2989aaef4c627f4fea630859ae9f72e9c307e;hpb=b2eba082865fb3bec25cdedaf617bc4d209407f8 diff --git a/src/split.c b/src/split.c index 88f9b2bd..3f4a7d0a 100644 --- a/src/split.c +++ b/src/split.c @@ -69,7 +69,7 @@ write_split_wim(WIMStruct *orig_wim, const tchar *swm_name, union wimlib_progress_info progress; unsigned part_number; int ret; - u8 guid[WIMLIB_GUID_LEN]; + u8 guid[GUID_SIZE]; swm_name_len = tstrlen(swm_name); swm_name_buf = alloca((swm_name_len + 20) * sizeof(tchar)); @@ -91,7 +91,7 @@ write_split_wim(WIMStruct *orig_wim, const tchar *swm_name, progress.split.total_bytes += swm_info->parts[part_number - 1].size; progress.split.total_parts = swm_info->num_parts; - randomize_byte_array(guid, WIMLIB_GUID_LEN); + generate_guid(guid); for (part_number = 1; part_number <= swm_info->num_parts; part_number++) { int part_write_flags;