serialize-javascript
serialize-javascript copied to clipboard
Use fallback UID generation when main function failed
The randombytes
library may throw an error if the browser does not support the crypto. Probably, the good solution in this case would be using the old way of building an UID (took it from here) rather than stopping execution with a third-party library error.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.