瀏覽代碼

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

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…
取消
儲存