small band aid fix for password generation on windows #276
Uses BCryptGenRandom win32 api function but still falls back to qrand. A proper fix would require more changes further up the stack maybe a dialog with retry and cancel button if password generation should fail. Could also be extended to use other apis on other platforms e.g. /dev/random on linux. Does this sound worthwhile or is it being work on elsewhere?
creates a new function rand in the util class that calls bcryptgenrandom from the win32 api when running on windows and falls back to qrand on other platforms