shell: added a handler for srand