Inject SecureRandom in SPI generation
Create SPI generator for IKE and IPsec SPI that can take a
RandomnessFactory and use return value of #getRandom to allocate
SPI. When the RandomnessFactory returns a DeterministicRandom,
the generator can generate deterministic SPI to support test mode.
Bug: 148689509
Test: atest FrameworksIkeTests
Change-Id: I477a02bc9924dd8c35dda19c53598167f9960075
Merged-In: I477a02bc9924dd8c35dda19c53598167f9960075
(cherry picked from commit 33b694e5f8c53e3f0e561db7793769eb9a7c769f)
12 files changed