Use random_bytes instead of openssl_random_pseudo_bytes when possible. Use proper InvalidArgumentException instead of general Exceptions. Several code style improvements.
Use random_bytes instead of openssl_random_pseudo_bytes when possible.
Use proper InvalidArgumentException instead of general Exceptions.
Several code style improvements.

Signed-off-by: Tom <c86d957322bd810a9a3576e2b50ecbaca1757bad@users.noreply.github.com>

D9ping/CSPGenerator