Skip to content

Commit

Permalink
Calc Single Challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
super3 committed May 31, 2015
1 parent 74a464c commit b95e814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dataserv/Challenge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import random
import hashlib
from RandomIO import RandomIO
from dataserv.Farmer import sha256

Expand Down Expand Up @@ -34,3 +35,6 @@ def get_seeds(self):
def gen_shard(self, seed, path):
return RandomIO(seed).genfile(self.shard_size, path)

def gen_challenge(self):
self.pick_seed()
self.gen_shard(self.seed)

0 comments on commit b95e814

Please sign in to comment.