* make sure an array is always of the appropriate size
by replacing a duplicate constant with a named identifier.
* initialize tested values for a more uniform distribution.
Change-Id: I2f195b25076b119deaf64f3c17b1ab6b4dee8200
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
libhusb_context *ctx;
libhusb_device **devs;
- /* TODO init this with some (?) values */
- libusb_device *lusb_devs[7];
+ libusb_device *lusb_devs[n];
+ for (i = 0; i < n; ++i)
+ lusb_devs[i] = (libusb_device *) rand();
ctx = (libhusb_context *)(*state);
assert_non_null(ctx);