Invalid bounding interval [, ]
C
b_avic at yahoo.com
Tue Jan 24 19:25:30 PST 2012
I want to fill a ubyte array with random data.
The code compiles with no warnings or errors.
Source snippet:
auto prng = Random(unpredictableSeed);
ubyte[] chunk;
chunk.length = 1024;
fill(chunk, uniform!("[]")('\x00', '\xFF', prng));
Error (at runtime):
object.Exception at c:\dmd2\windows\bin\..\..\src\phobos\std\random.d(971):
std.random.uniform(): invalid bounding interval [ , ]
----------------
423C50
423AC7
404EA8
404EEC
404AE3
4A6109
----------------
Also I lost the URL for this forum, all I see is this nasty PHP News Reader
interface.
Thank you.
More information about the Digitalmars-d-learn
mailing list