Print the random seed at startup

Also add an option for overriding the seed at startup.

This allows reproducing temporary issues by rerunning the test suite
with the same random seed.

Note that if tests are added or removed (or tests are skipped by passing
the --gtest_filter option), or if running on a different libc, the same
seed might result in different random values.
Silence warnings and errors when running tests that intentionally produce errors
Merge pull request #1248 from mstorsjo/silence-intentional-errors

Silence warnings and errors when running tests that intentionally produce errors
Merge pull request #1247 from mstorsjo/test-seed

Print the random seed at startup