Ocean/NumGen/Variables.go
Thorsten Sommer 81c4d15d9f Add the new NumGen
Added the new and distributed NumGen, which replaces the old one. The
old implementation was based on a master server.
2015-06-18 17:13:41 +02:00

16 lines
661 B
Go

package NumGen
import (
LM "github.com/SommerEngineering/Ocean/Log/Meta"
"sync"
"time"
)
var (
senderName LM.Sender = `System::NumGen` // This is the name for logging event from this package
genLock sync.Mutex = sync.Mutex{} // The mutex for the generator
genCurrentTime time.Time = time.Now().UTC() // The time for the last generated number
genCurrentMillisecond int = 0 // The millisecond for the last generated number
genCurrentMillisecondCounter int = 0 // The counter of how many numbers are generated at the same time
)