From: Eric Veith1 > this is rather unusual: I want a chunk of random garbage, and I want it > fast. The background is that I have a streaming test, and to run into some > intelligent read-ahead/write-behind/caching algorithm, I need random > stuff. /dev/null is fast, but obviously won't do it. /dev/urandom is too > slow. In C, I once resorted in a similar case to using malloc() to get
> some portion of memory without initializing it and writing that, but Perl > doesn't let me access malloc(), at least not via POSIX. I already tested > something like "rand x 100", but that's too slow, too. :-/ > > Any ideas are greatly appreciated. Copy a text or binary file into the stream. Any file in /bin or /sbin could be used. Bob McConnell -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/