public function getRandomStr() {
return bin2hex(file_get_contents('/dev/urandom', 0, null, -1, 16));
}
im trying to retrieve a random 32 character string here but I keep getting the above error, I did look to relevant posts but they all say that this is a offset error while I changed the offset from -1 to 1 and it didn't change anything, does anybody know why this error occurs in the first place.