Maybe, official doc? http://php.net/manual/ru/function.mcrypt-create-iv.php