So let's suppose I have brand new chip supported by MKL0x bootloader on my custom board. Then on what basis the serial number is generated for main chip by the bootloader?

I'm asking about the uniqueness of the serial number which affect my flashing process - I am using the tytools so serial number is used as filter for selective flashing (without the need of pressing the button - with is another option).