codeamp / circuit

CodeAmp API. Built with Golang, GraphQL, GORM and Socket-IO
Apache License 2.0
21 stars 6 forks source link

Fix db password generator #457

Closed drshrey closed 5 years ago

drshrey commented 5 years ago

Currently, the database password generator function will output the same sequence given the same time value as the input in the Seed function. If the system clock was hacked to be the same value every time this function was called, then passwords would be the same for all dbs created afterwards. We should make it so the sequence is random no matter what every single time the function is invoked.