Add autoconf checks for random(3) and srandom(3).