Skip to content

Commit 2fbfeb4

Browse files
bagasmezx2c4
authored andcommitted
Documentation: siphash: enclose HalfSipHash usage example in the literal block
Render usage example of HalfSipHash function as code block by using literal block syntax. Cc: Jonathan Corbet <[email protected]> Cc: Eric Biggers <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: [email protected] Signed-off-by: Bagas Sanjaya <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent ec86215 commit 2fbfeb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/security/siphash.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ Generating a HalfSipHash key
132132
============================
133133

134134
Keys should always be generated from a cryptographically secure source of
135-
random numbers, either using get_random_bytes or get_random_once:
135+
random numbers, either using get_random_bytes or get_random_once::
136136

137-
hsiphash_key_t key;
138-
get_random_bytes(&key, sizeof(key));
137+
hsiphash_key_t key;
138+
get_random_bytes(&key, sizeof(key));
139139

140140
If you're not deriving your key from here, you're doing it wrong.
141141

0 commit comments

Comments
 (0)