fix random weather
This commit is contained in:
parent
39c44cec1e
commit
5d60e0f53e
1 changed files with 0 additions and 1 deletions
|
@ -35,7 +35,6 @@ type WeatherData struct {
|
||||||
|
|
||||||
//NewRandomWeatherData creates random WeatherData
|
//NewRandomWeatherData creates random WeatherData
|
||||||
func NewRandomWeatherData() *WeatherData {
|
func NewRandomWeatherData() *WeatherData {
|
||||||
rand.Seed(time.Now().UnixNano())
|
|
||||||
var data = new(WeatherData)
|
var data = new(WeatherData)
|
||||||
data.Values = make(map[SensorValueType]float64)
|
data.Values = make(map[SensorValueType]float64)
|
||||||
data.Values[Humidity] = rand.Float64() * 100
|
data.Values[Humidity] = rand.Float64() * 100
|
||||||
|
|
Loading…
Add table
Reference in a new issue