Corrections about random bytes generation, dealing with some PHP versions.