random_bytes


random_bytes ( $bytes )

Parameters:
  • (int) $bytes
Returns:
  • (string)
Defined at:

Description

Unless open_basedir is enabled, use /dev/urandom for random numbers in accordance with best practices

Why we use /dev/urandom and not /dev/random

Related Functions

randombytes_buf, random_int, randombytes_uniform, randombytes_random16, sodium_randombytes_buf

Top Google Results

User discussions

wpseek mobile