e70152e44cc66cc599ff6b699eb8adc07f3e656a
kent
  Sat May 24 21:09:34 2014 -0700
Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment.
diff --git src/utils/scrambleFa/scrambleFa.c src/utils/scrambleFa/scrambleFa.c
index 9a34d28..347d64b 100644
--- src/utils/scrambleFa/scrambleFa.c
+++ src/utils/scrambleFa/scrambleFa.c
@@ -1,43 +1,46 @@
 /* ScrambleFa - scramble the order of records in an fa file. */
+
+/* Copyright (C) 2011 The Regents of the University of California 
+ * See README in this or parent directory for licensing information. */
 #include "common.h"
 #include "fa.h"
 
 
 void scrambleFa(char *inName, char *outName)
 /* scrambleFa - scramble the order of records in an fa file. */
 {
 struct dnaSeq *seqList, *seq;
 int seqCount;
 int seqIx;
 FILE *out;
 
 seqList = faReadAllDna(inName);
 out = mustOpen(outName, "w");
 seqCount = slCount(seqList);
 while (seqCount > 0)
     {
     seqIx = rand()%seqCount;
     seq = slElementFromIx(seqList, seqIx);
     faWriteNext(out, seq->name, seq->dna, seq->size);
     slRemoveEl(&seqList, seq);
     --seqCount;
     }
 fclose(out);
 }
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort("scrambleFa - scramble the order of records in an fa file\n"
          "usage:\n"
 	 "    scrambleFa in.fa out.fa");
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 if (argc != 3)
     usage();
 scrambleFa(argv[1], argv[2]);
 return 0;
 }