Revert "Tree long y"

This reverts commit 044b20c30836907b3f491fce94e3535982896d55.
Add irand48 with explicit int cast for lrand48