Hi,
I need to generate random bytes for x number of times and keep appending it
to a bigger byte[] array. How can I do this ?
for (int lctr=0; lctr < main.Main.NoOfa ttributes(); lctr=lctr+1){
// This line below generates the random bits for a given length
byte[] intervals = RandomFunctions .makeRandomGene Bits(length);
biggerByteArray[] = biggerByteArray + intervals ; // this is the
idea...obviousl y this statement doesn't work for byte[]
}
Any help, pointers on web are appreciated.
Many Thanks,
- Bharat.
I need to generate random bytes for x number of times and keep appending it
to a bigger byte[] array. How can I do this ?
for (int lctr=0; lctr < main.Main.NoOfa ttributes(); lctr=lctr+1){
// This line below generates the random bits for a given length
byte[] intervals = RandomFunctions .makeRandomGene Bits(length);
biggerByteArray[] = biggerByteArray + intervals ; // this is the
idea...obviousl y this statement doesn't work for byte[]
}
Any help, pointers on web are appreciated.
Many Thanks,
- Bharat.
Comment