Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

想知道singers.IDGenerate()为什么需要一个这么复杂的算法? #926

Closed
freewind opened this issue May 9, 2018 · 1 comment
Closed
Labels

Comments

@freewind
Copy link

freewind commented May 9, 2018

https://github.com/Bytom/bytom/blob/9c14fe5e1ef600420ae96fe7107df8b85ebe2ded/blockchain/signers/idgenerate.go#L22-L41

你好。我在看到这个singers.IDGenerate()的时候,发现它生成ID的算法还是比较复杂的,请问这个算法的名字是什么?

另外,它除了要提供一个“不重复”的id之外,还有别的什么要求吗?为什么不能直接使用一个uuid呢?

@Paladz
Copy link
Contributor

Paladz commented Jul 26, 2018

这个点的提出是对的,过于复杂了,后期会简化的,没这个必要

@Paladz Paladz closed this as completed Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants