[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] [doc-en] master: Add warning that GMP's random functions are not cryptographically secure 
From:       Tim_Düsterhus_via_GitHub <noreply () php ! net>
Date:       2023-03-26 13:40:49
Message-ID: dZdP4XeFZPd5be96uFtfj8enesOYmZ3080sqBNiP6k () main ! php ! net
[Download RAW message or body]

Author: Tim Düsterhus (TimWolla)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2023-03-26T14:27:38+01:00

Commit: https://github.com/php/doc-en/commit/7916b9cb9812aca7d8f241f96976af2d650de911
Raw diff: https://github.com/php/doc-en/commit/7916b9cb9812aca7d8f241f96976af2d650de911.diff


Add warning that GMP's random functions are not cryptographically secure (#2386)

Resolves php/doc-en#2384

Changed paths:
  M  reference/gmp/functions/gmp-random.xml
  M  reference/gmp/functions/gmp_random_bits.xml
  M  reference/gmp/functions/gmp_random_range.xml


Diff:

diff --git a/reference/gmp/functions/gmp-random.xml \
b/reference/gmp/functions/gmp-random.xml index a8412d0440e..7384fa6dbed 100644
--- a/reference/gmp/functions/gmp-random.xml
+++ b/reference/gmp/functions/gmp-random.xml
@@ -26,6 +26,7 @@
    not static, and can vary from system to system. Generally, the number
    of bits in a limb is either 32 or 64, but this is not guaranteed.
   </para>
+  &caution.cryptographically-insecure;
  </refsect1>
 
  <refsect1 role="parameters">
diff --git a/reference/gmp/functions/gmp_random_bits.xml \
b/reference/gmp/functions/gmp_random_bits.xml index 7fbdc129b06..80c486f8f67 100644
--- a/reference/gmp/functions/gmp_random_bits.xml
+++ b/reference/gmp/functions/gmp_random_bits.xml
@@ -19,6 +19,7 @@
   <para>
    <parameter>bits</parameter> must greater than 0, and the maximum value is \
restricted by available memory.  </para>
+  &caution.cryptographically-insecure;
  </refsect1>
 
  <refsect1 role="parameters">
diff --git a/reference/gmp/functions/gmp_random_range.xml \
b/reference/gmp/functions/gmp_random_range.xml index dcefad25543..a559054c91b 100644
--- a/reference/gmp/functions/gmp_random_range.xml
+++ b/reference/gmp/functions/gmp_random_range.xml
@@ -20,6 +20,7 @@
   <para>
    <parameter>min</parameter> and <parameter>max</parameter> can both be negative \
but <parameter>min</parameter> must always be less than <parameter>max</parameter>.  \
</para> +  &caution.cryptographically-insecure;
  </refsect1>
 
  <refsect1 role="parameters">

-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic