fixes #425 moves srandom before chroot
Update main.c
Merge pull request #426 from jrossi/manage_agents-425

fixes #425 moves srandom before chroot