android - randomIntInternal or secureRandom? -


i told flaw in android code through veracode analysis, , because of

file image = file.createtempfile(imagefilename, ".jpg", storagedir); 

where imagefilename created jpeg_+timestamp.

i thought securerandom() enough bypass test (as thought used randomness) link suggested:https://www.veracode.com/blog/research/cryptographically-secure-pseudo-random-number-generator-csprng , checked code , createtempfile generated from

result = new file(tmpdirfile, prefix + math.randomintinternal() + suffix); 

and can't find info this, better securerandom? true random?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -