Use single-parameter version of srand.

Change-Id: I4a7cdb3b74f54e46a95846ababc147c227b31e09