Skip to content
Snippets Groups Projects
Commit e5d76242 authored by capossele's avatar capossele
Browse files

:rotating_light: Fixes linter warnings

parent fa07a0cf
Branches
Tags
No related merge requests found
......@@ -49,6 +49,7 @@ func configureDRNG() *drng.DRNG {
return drng.New(state.SetCommittee(committeeConf))
}
// Instance returns the DRNG instance.
func Instance() *drng.DRNG {
once.Do(func() { instance = configureDRNG() })
return instance
......
......@@ -5,10 +5,14 @@ import (
)
const (
CfgDRNGInstanceID = "drng.instanceId"
CfgDRNGThreshold = "drng.threshold"
// CfgDRNGInstanceID defines the config flag of the DRNG instanceID.
CfgDRNGInstanceID = "drng.instanceId"
// CfgDRNGThreshold defines the config flag of the DRNG threshold.
CfgDRNGThreshold = "drng.threshold"
// CfgDRNGDistributedPubKey defines the config flag of the DRNG distributed Public Key.
CfgDRNGDistributedPubKey = "drng.distributedPubKey"
CfgDRNGCommitteeMembers = "drng.committeeMembers"
// CfgDRNGCommitteeMembers defines the config flag of the DRNG committee members identities.
CfgDRNGCommitteeMembers = "drng.committeeMembers"
)
func init() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment