{"action":"opened","issue":{"url":"https://api.github.com/repos/creationix/uscript/issues/1","labels_url":"https://api.github.com/repos/creationix/uscript/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/creationix/uscript/issues/1/comments","events_url":"https://api.github.com/repos/creationix/uscript/issues/1/events","html_url":"https://github.com/creationix/uscript/issues/1","id":92763117,"number":1,"title":"Use deadbeef random for portability","user":{"login":"creationix","id":89353,"avatar_url":"https://avatars.githubusercontent.com/u/89353?v=3","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T00:16:25Z","updated_at":"2015-07-03T00:16:25Z","closed_at":null,"body":"From http://inglorion.net/software/deadbeef_rand/\r\n\r\n```c\r\n #include \"deadbeef_rand.h\"\r\n\r\nstatic uint32_t deadbeef_seed;\r\nstatic uint32_t deadbeef_beef = 0xdeadbeef;\r\n\r\nuint32_t deadbeef_rand() {\r\n\tdeadbeef_seed = (deadbeef_seed << 7) ^ ((deadbeef_seed >> 25) + deadbeef_beef);\r\n\tdeadbeef_beef = (deadbeef_beef << 7) ^ ((deadbeef_beef >> 25) + 0xdeadbeef);\r\n\treturn deadbeef_seed;\r\n}\r\n\r\nvoid deadbeef_srand(uint32_t x) {\r\n\tdeadbeef_seed = x;\r\n\tdeadbeef_beef = 0xdeadbeef;\r\n}\r\n```"}}