Skip to content

Commit

Permalink
Reset random data generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Aug 1, 2015
1 parent f0913aa commit 40c3fb2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ object RandomDataGenerator {
seed.foreach(rand.setSeed)

val valueGenerator: Option[() => Any] = dataType match {
case StringType => Some(() => //rand.nextString(rand.nextInt(MAX_STR_LEN)))
"abcd")
case StringType => Some(() => rand.nextString(rand.nextInt(MAX_STR_LEN)))
case BinaryType => Some(() => {
val arr = new Array[Byte](rand.nextInt(MAX_STR_LEN))
rand.nextBytes(arr)
Expand Down

0 comments on commit 40c3fb2

Please sign in to comment.