{"action":"created","issue":{"url":"https://api.github.com/repos/davidbau/seedrandom/issues/33","repository_url":"https://api.github.com/repos/davidbau/seedrandom","labels_url":"https://api.github.com/repos/davidbau/seedrandom/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/davidbau/seedrandom/issues/33/comments","events_url":"https://api.github.com/repos/davidbau/seedrandom/issues/33/events","html_url":"https://github.com/davidbau/seedrandom/issues/33","id":135029032,"number":33,"title":"Saved state doesn't work","user":{"login":"Lomacar","id":4664022,"avatar_url":"https://avatars.githubusercontent.com/u/4664022?v=3","gravatar_id":"","url":"https://api.github.com/users/Lomacar","html_url":"https://github.com/Lomacar","followers_url":"https://api.github.com/users/Lomacar/followers","following_url":"https://api.github.com/users/Lomacar/following{/other_user}","gists_url":"https://api.github.com/users/Lomacar/gists{/gist_id}","starred_url":"https://api.github.com/users/Lomacar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lomacar/subscriptions","organizations_url":"https://api.github.com/users/Lomacar/orgs","repos_url":"https://api.github.com/users/Lomacar/repos","events_url":"https://api.github.com/users/Lomacar/events{/privacy}","received_events_url":"https://api.github.com/users/Lomacar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-20T03:50:06Z","updated_at":"2016-02-23T01:44:17Z","closed_at":null,"body":"I can't even run the example in the documentation:\r\n\r\n    var seedrandom = Math.seedrandom;\r\n    var saveable = seedrandom(\"secret-seed\", {state: true});\r\n    for (var j = 0; j < 1e5; ++j) saveable();\r\n    var saved = saveable.state();\r\n    var replica = seedrandom(\"\", {state: saved});\r\n    assert(replica() == saveable());\r\n\r\nI get an error: `Uncaught TypeError: saveable.state is not a function(…)`"},"comment":{"url":"https://api.github.com/repos/davidbau/seedrandom/issues/comments/187469248","html_url":"https://github.com/davidbau/seedrandom/issues/33#issuecomment-187469248","issue_url":"https://api.github.com/repos/davidbau/seedrandom/issues/33","id":187469248,"user":{"login":"Lomacar","id":4664022,"avatar_url":"https://avatars.githubusercontent.com/u/4664022?v=3","gravatar_id":"","url":"https://api.github.com/users/Lomacar","html_url":"https://github.com/Lomacar","followers_url":"https://api.github.com/users/Lomacar/followers","following_url":"https://api.github.com/users/Lomacar/following{/other_user}","gists_url":"https://api.github.com/users/Lomacar/gists{/gist_id}","starred_url":"https://api.github.com/users/Lomacar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lomacar/subscriptions","organizations_url":"https://api.github.com/users/Lomacar/orgs","repos_url":"https://api.github.com/users/Lomacar/repos","events_url":"https://api.github.com/users/Lomacar/events{/privacy}","received_events_url":"https://api.github.com/users/Lomacar/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T01:44:17Z","updated_at":"2016-02-23T01:44:17Z","body":"@tmedwards None of your examples work. I still always get same error that `XYZ.state is not a function(…)`.\r\n\r\nIn fact .state is undefined."}}