func New() *nauth {
	singleton.mutex.Lock()
	defer singleton.mutex.Unlock()

	if singleton.generatedKeysC == nil && PrecalculatedKeysNum > 0 {
		singleton.generatedKeysC = make(chan keyPair, PrecalculatedKeysNum)
		go singleton.precalculateKeys()
	}
	return &singleton
}
// New returns a pointer to a key generator for production purposes
New returns a pointer to a key generator for production purposes
// New returns a pointer to a key generator for production purposes
func New() *nauth {
	singleton.mutex.Lock()
	defer singleton.mutex.Unlock()
	if singleton.generatedKeysC == nil && PrecalculatedKeysNum > 0 {
		singleton.generatedKeysC = make(chan keyPair, PrecalculatedKeysNum)
		go singleton.precalculateKeys()
	}
	return &singleton
}
func New ( ) * nauth { singleton . mutex . Lock ( ) defer singleton . mutex . Unlock ( ) if singleton . generatedKeysC == nil && PrecalculatedKeysNum > 0 { singleton . generatedKeysC = make ( chan keyPair , PrecalculatedKeysNum ) go singleton . precalculateKeys ( ) } return & singleton }
New returns a pointer to a key generator for production purposes
New returns a pointer to a key generator for production purposes