Skip to content

Commit 9bebe97

Browse files
Merge pull request #2142 from mlindgren/patch-4
Update replacement API recommendations
2 parents c267e89 + e18e818 commit 9bebe97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk-api-src/content/ntsecapi/nf-ntsecapi-rtlgenrandom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ api_name:
5050

5151
## -description
5252

53-
<p class="CCE_Message">[The <b>RtlGenRandom</b> function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the <a href="/windows/desktop/api/wincrypt/nf-wincrypt-cryptgenrandom">CryptGenRandom</a> function.]
53+
<p class="CCE_Message">[The <b>RtlGenRandom</b> function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the <a href="/windows/win32/api/Bcrypt/nf-bcrypt-bcryptgenrandom">BCryptGenRandom</a> or <a href="/windows/win32/seccng/processprng">ProcessPrng</a> functions.]
5454

5555
The <b>RtlGenRandom</b> function generates a pseudo-random number.
5656
<div class="alert"><b>Note</b>  This function has no associated import library. This function is available as a resource named <b>SystemFunction036</b> in Advapi32.dll. You must use the <a href="/windows/desktop/api/libloaderapi/nf-libloaderapi-loadlibrarya">LoadLibrary</a> and <a href="/windows/desktop/api/libloaderapi/nf-libloaderapi-getprocaddress">GetProcAddress</a> functions to dynamically link to Advapi32.dll.</div><div> </div>
@@ -73,4 +73,4 @@ If the function fails, it returns <b>FALSE</b>.
7373

7474
## -remarks
7575

76-
When you have finished using the random number, free the <i>RandomBuffer</i> buffer by calling the <a href="/previous-versions/windows/desktop/legacy/aa366877(v=vs.85)">SecureZeroMemory</a> function.
76+
When you have finished using the random number, free the <i>RandomBuffer</i> buffer by calling the <a href="/previous-versions/windows/desktop/legacy/aa366877(v=vs.85)">SecureZeroMemory</a> function.

0 commit comments

Comments
 (0)