HHVM Compatibility to workaround a bug in HHVM, and give more entropy if it's available