crypt: Add workaround for non-fork-safe PRGs.