added pseudorandom generator

This commit is contained in:
Gani Georgiev committed 2022-11-06 15:26:34 +02:00
1 parent 46dc6cc47c
commit 4cddb6b5cb
9 files changed
+89 -47

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ func (s *Schema) RemoveField(id string) {
func (s *Schema) AddField(newField *SchemaField) {
if newField.Id == "" {
// set default id
newField.Id = strings.ToLower(security.RandomString(8))
newField.Id = strings.ToLower(security.PseudoRandomString(8))
}
for i, field := range s.fields {