Skip to content

Commit

Permalink
- javaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Yossi Farjoun committed Aug 10, 2018
1 parent e8c64f9 commit a77e99e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -670,5 +670,4 @@ private NullWriter() {
*/
public final static NullWriter NULL_WRITER = new NullWriter();
}

}
7 changes: 7 additions & 0 deletions src/main/java/htsjdk/samtools/util/SequenceUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,13 @@ public static String getSamReadNameFromFastqHeader(final String fastqHeader) {
return readName;
}

/**
* Returns an array of bytes containing random DNA bases
*
* @param random A {@link Random} object to use for drawing randomw bases
* @param length How many bases to return.
* @return an array of random DNA bases of the requested length.
*/
static public byte[] getRandomBases(Random random, final int length) {
ValidationUtils.validateArg(length>=0, "length must be positive");
final byte[] bases = new byte[length];
Expand Down

0 comments on commit a77e99e

Please sign in to comment.