Two approaches for ultrafast random bit generation based on the chaotic dynamics of a semiconductor laser