Catch more allocation failure cases

Also move ReseedRng() to use the stack rather than the heap.

Bug: 216213939
Bug: 215451239
Change-Id: I62ee8a5853acdaf49ff1908c625ac988d5b209c8
3 files changed