Use CSPRNG WinAPI CryptGenRandom to generate salt on windows
Change type of N param from uint64_t to size_t