ID EN
Encryption and Compression Functions

RANDOM_BYTES(len)

MySQL 8.4

This function returns a binary string of len random bytes generated using the random number generator of the SSL library. Permitted values of len range from 1 to 1024. For values outside that range, an error occurs. Returns NULL if len is NULL.