浏览代码

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

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() {

正在加载...
取消
保存