Minor change.

Make method parameter names consistent (cf. MATH-1307).
This commit is contained in:
Gilles 2015-12-29 01:49:36 +01:00
parent 8bcf7e23a6
commit d1123894d3
1 changed files with 7 additions and 7 deletions

View File

@ -228,17 +228,17 @@ public abstract class BaseRandomGenerator
* </p>
*
* @param bytes Array in which to put the generated bytes. Cannot be {@code null}.
* @param position Index at which to start inserting the generated bytes.
* @param length Number of bytes to insert.
* @param start Index at which to start inserting the generated bytes.
* @param len Number of bytes to insert.
*/
private void nextBytesFill(byte[] bytes,
int position,
int length) {
int index = position; // Index of first insertion.
int start,
int len) {
int index = start; // Index of first insertion.
// Index of first insertion plus multiple 4 part of length (i.e. length
// with two least significant bits unset).
final int indexLoopLimit = index + (length & 0x7ffffffc);
final int indexLoopLimit = index + (len & 0x7ffffffc);
// Start filling in the byte array, 4 bytes at a time.
while (index < indexLoopLimit) {
@ -249,7 +249,7 @@ public abstract class BaseRandomGenerator
bytes[index++] = (byte) (random >>> 24);
}
final int indexLimit = position + length; // Index of last insertion + 1.
final int indexLimit = start + len; // Index of last insertion + 1.
// Fill in the remaining bytes.
if (index < indexLimit) {