Browse Source

Push random bytes.

Push random bytes rather than zeros.
Steven Engler 5 years ago
parent
commit
3c56352dca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/basic_protocols.py

+ 1 - 1
src/basic_protocols.py

@@ -191,7 +191,7 @@ class PushDataProtocol(Protocol):
 		return False
 	#
 	def _default_data_generator(self, index, bytes_needed):
-		return b'0'*bytes_needed
+		return os.urandom(bytes_needed)
 	#
 #
 class PullDataProtocol(Protocol):