﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3054	_Crypt_GenRandom always returns False and sets @error	wraithdu	BrewManNH	"The function sets $iError = @error + 10 without checking @error. Further, I see no documentation or reason for @error + 10 at all.
{{{
Func _Crypt_GenRandom($pBuffer, $iSize)
	_Crypt_Startup()
	Local $aRet = DllCall(__Crypt_DllHandle(), ""bool"", ""CryptGenRandom"", ""handle"", __Crypt_Context(), ""dword"", $iSize, ""struct*"", $pBuffer)
	Local $iError = @error + 10, $iExtended = @extended
	_Crypt_Shutdown()
	If $iError Or (Not $aRet[0]) Then
		Return SetError($iError, $iExtended, False)
	Else
		Return True
	EndIf
EndFunc   ;==>_Crypt_GenRandom
}}}"	Bug	closed	3.3.13.21	Standard UDFs	3.3.13.20	None	Fixed	_crypt_genrandom	
