Skip to contentSkip to conversation

random.c: fix a typo in comments

PATCH In review Stefan Beller 2 participants 2 messages Oct 7, 2013 – Oct 16, 2013 Random number driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 random.c: fix a typo in comments

Also removes (trailing) tabs from an empty line.

---
 drivers/char/random.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/char/random.c +2 -2
index 7737b5b..a8457f2 100644
@@ -382,7 +382,7 @@ static struct poolinfo {
  * modulo the generator polymnomial.  Now, for random primitive polynomials,
  * this is a universal class of hash functions, meaning that the chance
  * of a collision is limited by the attacker's knowledge of the generator
- * polynomail, so if it is chosen at random, an attacker can never force
+ * polynomial, so if it is chosen at random, an attacker can never force
  * a collision.  Here, we use a fixed polynomial, but we *can* assume that
  * ###--> it is unknown to the processes generating the input entropy. <-###
  * Because of this important property, this is a good, collision-resistant
@@ -1078,7 +1078,7 @@ void get_random_bytes_arch(void *buf, int nbytes)
 
 		if (!arch_get_random_long(&v))
 			break;
-		
+
 		memcpy(p, &v, chunk);
 		p += chunk;
 		nbytes -= chunk;
Signature · 1 line
1.8.4.1.469.gb38b9db
maintainer
#1 lore raw
Quoted 3 lines · Stefan Beller

Also removes (trailing) tabs from an empty line.

Thanks for sending the patch, but the comments in this section have since been reworded in random.git, so this patch is no longer applicable to the random.git tree which will be pushed upstream at the next merge window.

Cheers,

- Ted