{"id":19038729,"url":"https://github.com/heavywatal/sfmt-class","last_synced_at":"2026-03-07T02:03:28.367Z","repository":{"id":21111532,"uuid":"24412085","full_name":"heavywatal/sfmt-class","owner":"heavywatal","description":"🎲 SFMT wrapper class for C++","archived":false,"fork":false,"pushed_at":"2025-06-16T03:27:55.000Z","size":316,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T05:54:46.180Z","etag":null,"topics":["c-plus-plus","mersenne-twister","random-number-generator","sfmt"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heavywatal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-09-24T11:20:03.000Z","updated_at":"2025-06-16T03:27:59.000Z","dependencies_parsed_at":"2024-05-09T15:55:28.738Z","dependency_job_id":"65af1cda-6e67-4d5a-b649-51150254a063","html_url":"https://github.com/heavywatal/sfmt-class","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/heavywatal/sfmt-class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavywatal%2Fsfmt-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavywatal%2Fsfmt-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavywatal%2Fsfmt-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavywatal%2Fsfmt-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavywatal","download_url":"https://codeload.github.com/heavywatal/sfmt-class/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavywatal%2Fsfmt-class/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","mersenne-twister","random-number-generator","sfmt"],"created_at":"2024-11-08T22:09:08.922Z","updated_at":"2026-03-07T02:03:28.350Z","avatar_url":"https://github.com/heavywatal.png","language":"C++","readme":"## SFMT-class\n\n[![Build status](https://github.com/heavywatal/sfmt-class/workflows/build/badge.svg)](https://github.com/heavywatal/sfmt-class/actions)\n\nThis is an unofficial wrapper of SFMT for C++.\nIt can also be used as just a simple installer of SFMT for C/C++.\nSFMT is a new variant of Mersenne Twister (MT) introduced by Mutsuo Saito and Makoto Matsumoto.\n\nhttp://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/\n\n### Installation\n\nThe easiest way is to use [Homebrew](https://brew.sh/):\n```sh\nbrew install heavywatal/tap/sfmt-class\n```\n\nAlternatively, you can get the source code from GitHub manually:\n```sh\ngit clone https://github.com/heavywatal/sfmt-class.git\ncd sfmt-class/\ncmake -S . -B build -DCMAKE_INSTALL_PREFIX=${HOME}/local\ncmake --build build -j2\ncmake --install build\n```\n\nHeader files are installed to `${CMAKE_INSTALL_PREFIX}/include/`.\nThis library can be imported from other CMake projects:\n```cmake\nfind_package(sfmt)\ntarget_link_libraries(${YOUR_TARGET} PRIVATE wtl::sfmt)\n```\n\n### Usage in C++\n\nC++ header `sfmt.hpp` is installed in addition to the original C headers.\nA wrapper class `wtl::sfmt19937` is compatible with `std::mt19937` and can be used in combination with `std::*_distribution` in `\u003crandom\u003e`.\nFor convenience, a static object is initialized with `std::random_device`, and its reference is provided through an inline function `sfmt()`.\nSee ``test/example.cpp`` and try `ctest -V`.\nThe 64-bit version `wtl::sfmt19937_64` and `wtl::sfmt64()` are also available, and faster than 32-bit version in most cases.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavywatal%2Fsfmt-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavywatal%2Fsfmt-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavywatal%2Fsfmt-class/lists"}