summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 37860996a6e..90d67f1acfd 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1136,11 +1136,15 @@
</table>
<para>
- The characteristics of the values returned by
- <literal><function>random()</function></literal> depend
- on the system implementation. It is not suitable for cryptographic
- applications; see <xref linkend="pgcrypto"/> module for an alternative.
- </para>
+ The <function>random()</function> function uses a simple linear
+ congruential algorithm. It is fast but not suitable for cryptographic
+ applications; see the <xref linkend="pgcrypto"/> module for a more
+ secure alternative.
+ If <function>setseed()</function> is called, the results of
+ subsequent <function>random()</function> calls in the current session are
+ repeatable by re-issuing <function>setseed()</function> with the same
+ argument.
+ </para>
<para>
Finally, <xref linkend="functions-math-trig-table"/> shows the