crypto: jitterentropy - drop redundant delta check in jent_entropy_init
PATCH 1/2 crypto: jitterentropy - drop redundant delta check in jent_entropy_init
Since start_time = end_time - delta, start_time can only equal end_time when delta is 0, making the explicit end_time == start_time check redundant. Remove it.
--- crypto/jitterentropy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/jitterentropy.c +1 -1
@@ -775,7 +775,7 @@ int jent_entropy_init(unsigned int osr, unsigned int flags,* delta even when called shortly after each other -- this * implies that we also have a high resolution timer */ -if (!delta || (end_time == start_time)) { +if (!delta) { ret =JENT_ECOARSETIME ; goto out; }
PATCH 2/2 crypto: jitterentropy - fix URL
The URL https://www.chronox.de/jent.html resolves to a 404 Not Found. Use https://www.chronox.de/jent/ instead.
--- crypto/jitterentropy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
crypto/jitterentropy.c +2 -2
@@ -7,7 +7,7 @@* Design * ====== * -* See https://www.chronox.de/jent.html +* See https://www.chronox.de/jent/ * * License * =======
@@ -47,7 +47,7 @@/* * This Jitterentropy RNG is based on the jitterentropy library -* version 3.4.0 provided at https://www.chronox.de/jent.html +* version 3.4.0 provided at https://www.chronox.de/jent/ */ #ifdef __OPTIMIZE__
Re: [PATCH 2/2] crypto: jitterentropy - fix URL
Am Montag, 4. Mai 2026, 10:28:51 Mitteleuropäische Sommerzeit schrieb Thorsten Blum:
Hi Thorsten,
Quoted 4 lines
The URL https://www.chronox.de/jent.html resolves to a 404 Not Found. Use https://www.chronox.de/jent/ instead.
Signed-off-by Thorsten Blum <[email protected]>
Ciao
Stephan
Am Montag, 4. Mai 2026, 10:28:50 Mitteleuropäische Sommerzeit schrieb Thorsten Blum:
Hi Thorsten,
Quoted 5 lines
Since
start_time=end_time- delta,start_timecan only equalend_timewhen delta is 0, making the explicitend_time==start_timecheck redundant. Remove it.Signed-off-by Thorsten Blum <[email protected]>
Ciao
Stephan
Herbert Xu
maintainerQuoted 8 lines · Thorsten Blum
Since
start_time=end_time- delta,start_timecan only equalend_timewhen delta is 0, making the explicitend_time==start_timecheck redundant. Remove it.Signed-off-by Thorsten Blum <[email protected]>--- crypto/jitterentropy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
All applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt