Fixed crash urand.

Signed-off-by: bootz <bootz@projectskyfire.org>