Messages in this thread | | | Date | Sat, 27 Nov 2004 21:56:00 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: Concurrent access to /dev/urandom |
| |
>As long as I serialize access to /dev/urandom, I get different values. >However, with concurrent access to /dev/urandom, I quickly get duplicate
How do you concurrently read from urandom? That's only possible with 2 or more CPUs, and even then, I hope that the urandom chardev has some spinlock.
>#include <pthread.h> >[...]
Rule of thumb: Post the smallest possible code that shows the problem.
Jan Engelhardt -- Gesellschaft für Wissenschaftliche Datenverarbeitung Am Fassberg, 37077 Göttingen, www.gwdg.de - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |