소스 검색

Push random bytes.

Push random bytes rather than zeros.
Steven Engler 6 년 전
부모
커밋
3c56352dca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):