소스 검색

개인키 오버플로우 방지 수정

master
kidjung 4 년 전
부모
커밋
1df44d4c28
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      src/main.go

+ 2
- 1
src/main.go 파일 보기

@@ -311,7 +311,8 @@ type Reply struct { // 리턴값
311 311
 
312 312
 func generateRanUint64() uint64 {
313 313
 	rand.Seed(time.Now().UnixNano())
314
-	return uint64(rand.Uint32())<<32 + uint64(rand.Uint32())
314
+	//return uint64(rand.Uint32())<<32 + uint64(rand.Uint32())
315
+	return uint64(0 + uint64(rand.Uint32()))
315 316
 }
316 317
 
317 318
 func main() {

Loading…
취소
저장