From 7858b5a4915aa340811519ab187f533e4836884b Mon Sep 17 00:00:00 2001 From: Estelle Weyl Date: Thu, 19 Feb 2026 11:55:27 +0100 Subject: [PATCH 1/3] Update RNG glossary entry for CSS random function --- files/en-us/glossary/rng/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/glossary/rng/index.md b/files/en-us/glossary/rng/index.md index b9ebb3ab754ff06..ebf63c724132acc 100644 --- a/files/en-us/glossary/rng/index.md +++ b/files/en-us/glossary/rng/index.md @@ -19,5 +19,5 @@ Most PRNGs are not cryptographically secure. ## See also - [Pseudorandom number generator](https://en.wikipedia.org/wiki/Pseudorandom_number_generator) on Wikipedia -- {{jsxref("Math.random()")}}, a built-in JavaScript PRNG function. Note that this is not a cryptographically secure PRNG. +- JavaScript's {{jsxref("Math.random()")}} and CSS's {{cssxref("random()")}} built-in PRNG functions. Note that these are not a cryptographically secure PRNG. - {{domxref("Crypto.getRandomValues()")}}: this is intended to provide cryptographically secure numbers. From 8e469648f2cceef538be89e7241a731a4b138fe2 Mon Sep 17 00:00:00 2001 From: Estelle Weyl Date: Thu, 19 Feb 2026 12:00:49 +0100 Subject: [PATCH 2/3] Move 'random()' function to supported on module page (#43165) Moved the reference to the 'random()' function from the list of unsupported functions and added it to the list of supported functions --- files/en-us/web/css/guides/values_and_units/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/en-us/web/css/guides/values_and_units/index.md b/files/en-us/web/css/guides/values_and_units/index.md index 28e55f9c0e29288..a80bd32a91b8403 100644 --- a/files/en-us/web/css/guides/values_and_units/index.md +++ b/files/en-us/web/css/guides/values_and_units/index.md @@ -44,6 +44,7 @@ Every CSS declaration consists of a property/value pair. The value can take vari - {{cssxref("mod()")}} - {{cssxref("pow()")}} - {{cssxref("progress()")}} +- {{cssxref("random()")}} - {{cssxref("rem()")}} - {{cssxref("round()")}} - {{cssxref("sibling-count()")}} @@ -54,7 +55,7 @@ Every CSS declaration consists of a property/value pair. The value can take vari - {{cssxref("tan()")}} - {{cssxref("url_function", "url()")}} -The CSS values and units module also introduces the `calc-mix()`, `crossorigin()`, `first-valid()`, `integrity()`, `random()`, `random-item()`, `referrerpolicy()`, `src()`, `type()`, and `toggle()` functions. Currently, no browsers support these features. +The CSS values and units module also introduces the `calc-mix()`, `crossorigin()`, `first-valid()`, `integrity()`, `random-item()`, `referrerpolicy()`, `src()`, `type()`, and `toggle()` functions. Currently, no browsers support these features. ### Data types From 5f067d8a702bd4c0712b114edeb585e487dc246c Mon Sep 17 00:00:00 2001 From: Estelle Weyl Date: Fri, 20 Feb 2026 02:42:43 +0100 Subject: [PATCH 3/3] put external links last --- files/en-us/glossary/rng/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/glossary/rng/index.md b/files/en-us/glossary/rng/index.md index ebf63c724132acc..1c70f1600c62fdd 100644 --- a/files/en-us/glossary/rng/index.md +++ b/files/en-us/glossary/rng/index.md @@ -18,6 +18,6 @@ Most PRNGs are not cryptographically secure. ## See also -- [Pseudorandom number generator](https://en.wikipedia.org/wiki/Pseudorandom_number_generator) on Wikipedia - JavaScript's {{jsxref("Math.random()")}} and CSS's {{cssxref("random()")}} built-in PRNG functions. Note that these are not a cryptographically secure PRNG. - {{domxref("Crypto.getRandomValues()")}}: this is intended to provide cryptographically secure numbers. +- [Pseudorandom number generator](https://en.wikipedia.org/wiki/Pseudorandom_number_generator) on Wikipedia