In order for the stream cipher to be protected from repeated key attacks, IV should not be repeated. But does SecureRandom have an advantage over simple, unprotected Random in this regard (or is it just to create an unpredictable sequence)?
Assuming I use fixed-size messages with AES CBC mode, and I generate a new Random for each IV (using the current time nano as a seed), does this increase the likelihood of repeating IV compared to SecureRandom?
source
share