Is it possible to generate a salt string using base64_encode in PHP for password hashing?

When generating a salt string for password hashing, it is recommended to use a cryptographically secure pseudo-random function like `random_bytes()` in PHP. This ensures that the salt is sufficiently random and secure for use in hashing passwords. Using `base64_encode()` alone may not provide enough randomness for a secure salt.

// Generate a secure random salt using random_bytes
$salt = base64_encode(random_bytes(16));