fix random weather

This commit is contained in:
Joel Schmid 2021-04-27 20:16:57 +02:00
parent 39c44cec1e
commit 5d60e0f53e

View file

@ -35,7 +35,6 @@ type WeatherData struct {
//NewRandomWeatherData creates random WeatherData
func NewRandomWeatherData() *WeatherData {
rand.Seed(time.Now().UnixNano())
var data = new(WeatherData)
data.Values = make(map[SensorValueType]float64)
data.Values[Humidity] = rand.Float64() * 100