Using mocha instead of srand