#9416 closed enhancement (fixed)
dev/random needs to be writable
Reported by: | fishpond | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Drivers | Version: | R1/Development |
Keywords: | random, OpenJDK | Cc: | hamish |
Blocked By: | Blocking: | ||
Platform: | All |
Description
dev/random currently is read-only. On other OSs, writing data to it is used for seeding or increasing the entropy. OpenJDK's NativePRNG class uses dev/random writes and will thus throw exceptions on re-seeding. With the attached patch, I'm able to run Netbeans 7.3beta2 with only few problems remaining.
Attachments (2)
Change History (10)
by , 12 years ago
Attachment: | driver.patch added |
---|
comment:1 by , 12 years ago
patch: | 0 → 1 |
---|
comment:2 by , 12 years ago
Type: | bug → enhancement |
---|
by , 12 years ago
Attachment: | 0001-Added-capability-to-accept-writes-to-dev-random.patch added |
---|
comment:4 by , 12 years ago
Here you go! Also removed the tracing which was still activated in the last patch.
comment:5 by , 12 years ago
Patch is acceptable as is, but it seems like C style, whereas the file is C++. This should be improved at a later time.
comment:6 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Edited and applied in hrev45228. Thanks!
comment:7 by , 12 years ago
Cc: | added |
---|
Hamish, this could be of interest for you in relation to http://hg.openjdk.java.net/haiku/haiku/jdk/rev/140b6d549a5e
comment:8 by , 12 years ago
It is indeed. I've removed the workaround now. Thanks korli, and thanks fishpond for the patch.
Patch for add-ons/kernel/drivers/random/driver.cpp