Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
its 8
  • Loading branch information
boazsegev committed Jan 11, 2023
1 parent a0faf2e commit 49a4aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/iodine/fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 49a4aaa

Please sign in to comment.