patch-2.1.106 linux/drivers/char/random.c
Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/radio-aimslab.c
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Sat Jun 13 11:38:49 1998
-  Orig file: 
v2.1.105/linux/drivers/char/random.c
-  Orig date: 
Sun Jun  7 11:16:30 1998
diff -u --recursive --new-file v2.1.105/linux/drivers/char/random.c linux/drivers/char/random.c
@@ -513,6 +513,10 @@
 	do_gettimeofday(&tv);
 	add_entropy_words(r, tv.tv_sec, tv.tv_usec);
 
+	/*
+	 *	This doesnt lock system.utsname. Howeve we are generating
+	 *	entropy so a race with a name set here is fine.
+	 */
 	p = (__u32 *)&system_utsname;
 	for (i = sizeof(system_utsname) / sizeof(words); i; i--) {
 		memcpy(words, p, sizeof(words));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov