Fixed message boundary and add seed to qrand