Adapt SecureRandom insecurity fix from http://android-developers.blogspot.co.uk/2013/08/some-securerandom-thoughts.html for building as part of the firmware