Skip to content

Commit 066f3b6

Browse files
committed
RandomSource is deprecated, it's crypto now
1 parent 5dbb91f commit 066f3b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Security/CWE-338/InsecureRandomness.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<p>
3737

3838
For JavaScript in the browser,
39-
<code>RandomSource.getRandomValues</code> provides a cryptographically
39+
<code>crypto.getRandomValues</code> provides a cryptographically
4040
secure pseudo-random number generator.
4141

4242
</p>
@@ -69,7 +69,7 @@
6969

7070
<references>
7171
<li>Wikipedia: <a href="http://en.wikipedia.org/wiki/Pseudorandom_number_generator">Pseudo-random number generator</a>.</li>
72-
<li>Mozilla Developer Network: <a href="https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues">RandomSource.getRandomValues</a>.</li>
72+
<li>Mozilla Developer Network: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues">Crypto: getRandomValues()</a>.</li>
7373
<li>NodeJS: <a href="https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback">crypto.randomBytes</a></li>
7474
</references>
7575
</qhelp>

0 commit comments

Comments
 (0)