diff --git a/doc/src/sgml/ref/pgbench.sgml b/doc/src/sgml/ref/pgbench.sgml
index 41d9030..e4b37dd 100644
--- a/doc/src/sgml/ref/pgbench.sgml
+++ b/doc/src/sgml/ref/pgbench.sgml
@@ -1350,7 +1350,7 @@ pgbench options d
1.0
- mod(i, bj)
+ mod(i, j)
integer
modulo
mod(54, 32)
@@ -1526,8 +1526,8 @@ f(x) = PHI(2.0 * parameter * (x - mu) / (max - min + 1)) /
with each other and this is when implicit seed parameter comes in handy:
-\set k1 abs(hash(:r), :default_seed + 123) % 1000000
-\set k2 abs(hash(:r), :default_seed + 321) % 1000000
+\set k1 abs(hash(:r, :default_seed + 123)) % 1000000
+\set k2 abs(hash(:r, :default_seed + 321)) % 1000000