chaps: generate random bytes in software if TPM unavailable

On creation of an isolate when a TPM is unavailable, need to generate
random data without the assistance of the TPM.

BUG=None
TEST=Chaps unit tests (with ASAN) plus PKCS11 tests

Change-Id: I56e153d7560460da4c7341352f4b3f73418c8222
Reviewed-on: https://chromium-review.googlesource.com/227581
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: David Drysdale <drysdale@google.com>
Tested-by: David Drysdale <drysdale@google.com>
2 files changed