From 49a4aaab34f541ecae257008c0afa1cbf4517219 Mon Sep 17 00:00:00 2001 From: Bo Date: Wed, 11 Jan 2023 00:15:19 +0000 Subject: [PATCH] oops its 8 --- ext/iodine/fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/iodine/fio.c b/ext/iodine/fio.c index f7f28cf..c298025 100644 --- a/ext/iodine/fio.c +++ b/ext/iodine/fio.c @@ -6748,7 +6748,7 @@ static void fio_cluster_init(void) { tmp_folder_len += 10; tmp_folder_len += snprintf(cluster_data.name + tmp_folder_len, - FIO_CLUSTER_NAME_LIMIT - tmp_folder_len, "%d", (int)getpid() + (int)(fio_rand64()) & 0xAFFF); + FIO_CLUSTER_NAME_LIMIT - tmp_folder_len, "%08x", (int)getpid() + (int)(fio_rand64() & 0xAFFFFFFF)); cluster_data.name[tmp_folder_len] = 0; /* remove if existing */