{"action":"created","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/1736","repository_url":"https://api.github.com/repos/arangodb/arangodb","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/1736/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/1736/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/1736/events","html_url":"https://github.com/arangodb/arangodb/issues/1736","id":133595742,"number":1736,"title":"Generate UUID in Foxx","user":{"login":"phal0r","id":3658211,"avatar_url":"https://avatars.githubusercontent.com/u/3658211?v=3","gravatar_id":"","url":"https://api.github.com/users/phal0r","html_url":"https://github.com/phal0r","followers_url":"https://api.github.com/users/phal0r/followers","following_url":"https://api.github.com/users/phal0r/following{/other_user}","gists_url":"https://api.github.com/users/phal0r/gists{/gist_id}","starred_url":"https://api.github.com/users/phal0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phal0r/subscriptions","organizations_url":"https://api.github.com/users/phal0r/orgs","repos_url":"https://api.github.com/users/phal0r/repos","events_url":"https://api.github.com/users/phal0r/events{/privacy}","received_events_url":"https://api.github.com/users/phal0r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arangodb/arangodb/labels/2_Question","name":"2_Question","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"pluma","id":1280922,"avatar_url":"https://avatars.githubusercontent.com/u/1280922?v=3","gravatar_id":"","url":"https://api.github.com/users/pluma","html_url":"https://github.com/pluma","followers_url":"https://api.github.com/users/pluma/followers","following_url":"https://api.github.com/users/pluma/following{/other_user}","gists_url":"https://api.github.com/users/pluma/gists{/gist_id}","starred_url":"https://api.github.com/users/pluma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pluma/subscriptions","organizations_url":"https://api.github.com/users/pluma/orgs","repos_url":"https://api.github.com/users/pluma/repos","events_url":"https://api.github.com/users/pluma/events{/privacy}","received_events_url":"https://api.github.com/users/pluma/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2016-02-15T00:09:41Z","updated_at":"2016-02-17T22:54:43Z","closed_at":null,"body":"Hi Guys,\r\n\r\ni have a scenario, where i want to clone documents and create new uuid's inside foxx. There seems to be no integrated way (at least i didn't found one), so i tried to include [node-uuid](https://github.com/broofa/node-uuid), but it requires either getRandomValues() from the WHATWG proposed crypto modules for browsers or randomBytes() from the node.js crypto module. I saw that the Foxx crypto module is there, but empty a.k.a. not implemented yet. Do you have any suggestions for a workaround?"},"comment":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/comments/185446726","html_url":"https://github.com/arangodb/arangodb/issues/1736#issuecomment-185446726","issue_url":"https://api.github.com/repos/arangodb/arangodb/issues/1736","id":185446726,"user":{"login":"baslr","id":1494154,"avatar_url":"https://avatars.githubusercontent.com/u/1494154?v=3","gravatar_id":"","url":"https://api.github.com/users/baslr","html_url":"https://github.com/baslr","followers_url":"https://api.github.com/users/baslr/followers","following_url":"https://api.github.com/users/baslr/following{/other_user}","gists_url":"https://api.github.com/users/baslr/gists{/gist_id}","starred_url":"https://api.github.com/users/baslr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baslr/subscriptions","organizations_url":"https://api.github.com/users/baslr/orgs","repos_url":"https://api.github.com/users/baslr/repos","events_url":"https://api.github.com/users/baslr/events{/privacy}","received_events_url":"https://api.github.com/users/baslr/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T22:54:43Z","updated_at":"2016-02-17T22:54:43Z","body":"this should to the trick. On *NIX. https://github.com/baslr/ArangoDB/commit/2612824f57489bc2f8bdd7ebb19eb7c1c54bb1dc\r\n```\r\narangosh [_system]> a  = require ('@arangodb/crypto')\r\narangosh [_system]> a.randomBytes(10).toString('hex')\r\na85e96fef3916497a018\r\n\r\narangosh [_system]> a.randomBytes(10).toString('hex')\r\ncc3a13f6ce84235ef7a1\r\n```"}}