Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select random or urandom as source for SecureRandom in Android

Tags:

android

random

How can I select random or urandom as a source of randomness for SecureRandom class in Android?

like image 203
Rubi Sharmax Avatar asked Nov 04 '22 00:11

Rubi Sharmax


1 Answers

Don't worry about it.

By default, instances of [SecureRandom] will generate an initial seed using an internal entropy source, such as /dev/urandom.

http://developer.android.com/reference/java/security/SecureRandom.html

like image 178
Matt Ball Avatar answered Nov 09 '22 16:11

Matt Ball