import random, sets, eth/trie/trie_utils as ethUtils, eth/rlp/types as rlpTypes, stew/ranges/bitranges, nimcrypto/[utils, sysrand] type RandGen*[T] = object minVal, maxVal: T KVPair* = ref object key*: string value*: string proc randGen*[T](minVal, maxVal: T): RandGen[T] = doAssert(minVal <= maxVal) result.minVal = minVal result.maxVal = maxVal proc randGen*[T](minMax: T): RandGen[T] = randGen(minMax, minMax) proc getVal*[T](x: RandGen[T]): T = if x.minVal == x.maxVal: return x.minVal rand(x.minVal..x.maxVal) proc randString*(len: int): string = result = newString(len) for i in 0..