Refer to http://android-developers.blogspot.tw/2013/08/some-securerandom-thoughts.html