Manuscript (Case [Issue]21577) Streams - Cannot read from /dev/urandom

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]21577) Streams - Cannot read from /dev/urandom

Pharo Issue Tracker
Manuscript Notification
avatar
Alistair Grant revised a previous entry on Case 21577: Cannot read from /dev/urandom:
Bug in Project:  Streams: 1. Pharo Image  •  You are subscribed to this case
FilePlugin used to cache the file size, so had its own definition of "at end". Caching the size was recently removed, but the definition of primitiveFileAtEnd was simply changed to call ftell() to get the file size.

Modifying primitiveFileAtEnd to simply use feof() results in the correct behaviour in this case, e.g.:

(FileSystem / 'dev' / 'urandom') binaryReadStream next: 8.
" #[179 136 227 226 28 147 197 125]"

I'll open a separate issue to update the VM
(https://pharo.fogbugz.com/f/cases/21643/) .

But we still shouldn't be relying on #atEnd so I'll have a look at Martin's ZnBufferedReadStream modifications first.

Cheers,
Alistair
Priority Priority: 3 – Must Fix Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker