Do not use weak random for password hashing

Throw an exception during password hash generation if only weak sources
of random data can be found.

Bug: 71624
Change-Id: Id950da464d61fc0b3a4aea3fb7dbc1cd7649ea73