kohana/core — pull request #528 by sarciszewski (2014-08-07 00:40:12+00:00)
Title: Update Encrypt.php

`mt_srand()` doesn't touch `rand()` it only affects `mt_rand()`, which is not called when `MCRYPT_RAND` is passed to `mcrypt_create_iv()`.

So instead, let's pass it on to a userland RNG.