Skip to content

Commit

Permalink
Replace md5 with uniqid()
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 10, 2015
1 parent ffcd651 commit f2188e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormKit/Widget/BaseWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function convertClassToCssClassName()

public function generateSerialId()
{
return $this->name . '-' . md5(microtime(true));
return uniqid($this->name ?: 'widget_');
}

public function getName()
Expand Down

0 comments on commit f2188e5

Please sign in to comment.