Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
半年間で60万回叩かれたAPIを公開した話 / rng-api
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
odanado
PRO
July 15, 2017
Programming
1k
1
Share
半年間で60万回叩かれたAPIを公開した話 / rng-api
odanado
PRO
July 15, 2017
More Decks by odanado
See All by odanado
Vitest Browser Mode への期待 / Vitest Browser Mode
odanado
PRO
3
5.4k
@nestjs/bull の活用について
odanado
PRO
0
1.5k
クラウド KMS の活用 / TOKYO BLOCKCHAIN TECH MEETUP 2022
odanado
PRO
0
1.3k
Vue.observable で状態管理 / vue-observable-state-management
odanado
PRO
4
2.1k
nuxtjs-axios-error-handling
odanado
PRO
0
400
ブロックチェーンアプリのトランザクションに対するデータ分析 / PyCon-JP-2019
odanado
PRO
0
460
スマートコントラクトに対する既知の攻撃とその対策 / bc.tokyo-21
odanado
PRO
0
280
最近のweb3.js事情 / bc.tokyo-19
odanado
PRO
2
560
YAPC::Tokyo 2019に スタッフ参加してみて / kichijojipm-18
odanado
PRO
1
2.4k
Other Decks in Programming
See All in Programming
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.2k
AgentCore Optimizationを始めよう!
licux
3
220
My daily life on Ruby
a_matsuda
3
190
when storing skills in S3 file
watany
3
1.4k
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
450
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.6k
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
150
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.6k
書き換えて学ぶTemporal #fukts
pirosikick
2
360
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
3
330
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
5
1.6k
Agentic Elixir
whatyouhide
0
440
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
550
The SEO Collaboration Effect
kristinabergwall1
1
440
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Writing Fast Ruby
sferik
630
63k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
240
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Prompt Engineering for Job Search
mfonobong
0
300
Automating Front-end Workflow
addyosmani
1370
200k
Transcript
ؒͰ60ສճୟ͔Εͨ APIΛެ։ͨ͠
ԿͷAPIΛ࡞ͬͨͷ • ϙέϞϯʁ • ిؾͷήʔϜ • ڈൃച͞ΕͨαϯϜʔϯ • ཚௐʁ •
ޙͰ͢ • APIʁ • Application Programming Interface • URLୟ͘ͱඞཁͳใ͕ฦͬͯ͘Δ ϙέϞϯͷཚௐͷͨΊͷΣϒAPIΛ࡞ͬͨ
ཚௐʁ • ٖࣅཚ • seedͷʹΑͬͯͰͨΒΊʹݟ͑Δ͚Ͳ ࣍ʹԿ͕དྷΔ͔Θ͔͍ͬͯΔཚ • ਅͷཚ • ࣍ʹԿ͕དྷΔ͔༧ଌෆՄೳͳຊͷཚ
ήʔϜͷٖࣅཚΛࢥ͍௨Γʹૢ࡞͢Δ͜ͱ seed = 42 ࣍ʹԿ͕དྷΔ͔ ༧ଌՄೳ ࣍ʹԿ͕དྷΔ͔ ༧ଌෆՄೳ
ϙέϞϯͷཚௐʁ • ڧ͍ݸମ৭ҧ͍ͳͲग़͠์ • ιγϟήͰ֬ఆͰSSRΛҾ͘Α͏ͳײ͡ • ྑ͍αΠίϩͷ=ڧ͍ݸମ,SSR • Ͳ͏Δͷ͔ʁ ٖࣅཚͷseedʹΑͬͯ
αΠίϩͷܾ·Δ ٖࣅཚͷseedͷ 0͔Β2"#ͷΛऔΔ αΠίϩͷ͔ΒseedͷΛٯࢉ͢Ε ͦͷޙͷαΠίϩͷ༧ଌՄೳ αΠίϩͷ ήʔϜ্Ͱ؍ଌՄೳ
ཚΞϧΰϦζϜ • ཚΞϧΰϦζϜ • seed ͔ΒαΠίϩͷΛܭࢉ͢Δํ๏ • ཚΞϧΰϦζϜͷछྨ • ฏํ࠾த๏
• ઢܗ߹ಉ๏ • ϝϧηϯψɾπΠελ • xor shift • ͳͲͳͲ ϙέϞϯͰͲͷཚΞϧΰϦζϜ͕ ΘΕ͍ͯΔ͔Θ͔Βͳ͍
ཚΞϧΰϦζϜ • όΠφϦղੳ͢Δ͔͠ແ͍ʁʁ
࡞ͬͨAPIͷ༷ • લॲཧ • αʔόଆͰ࣍ͷͷϖΞΛ2"#ݸܭࢉ • (seed, ࠷ॳnݸͷαΠίϩͷ) • ࠷ॳnݸͷαΠίϩͷͰιʔτ
• ຊॲཧ • Ϣʔβʔ͔Β࠷ॳnݸͷαΠίϩͷ͕དྷΔͱ ೋ୳ࡧͰseedΛܭࢉ • ܭࢉ݁ՌΛjsonܗࣜͰฦ٫
࡞ͬͨAPIͷ༷ ࠷ॳnݸͷαΠίϩͷ seed=42 ͩΑ ʘೋ୳ࡧʗ ʘڧ͍ݸମͷϙέϞϯήοτʗ
࡞ͬͨAPIͷ༷ • αʔόʔ • ͘͞ΒVPS • ϓϩάϥϛϯάݴޠ • લॲཧ&୳ࡧC++ •
API෦Python
࡞ͬͨ݁Ռ • Ͱ60ສճAPI͕ίʔϧ͞Εͨ • ຊࠃ͚ͩ͡Όͳͯ͘ੈքத͔Β • ΫϥΠΞϯτΞϓϦΛ࡞ͬͯ͘ΕΔਓ͕ݱΕͨ • Quandra/PokemonSunMoonRNGTool •
wwwwwwzx/3DSRNGTool • zaksabeast/SMBrowserRNG
ײ • ωοτ্ͷΓ߹͍ͱҰॹʹ͜͜·ͰདྷΕͨ • ੈքதͷਓʹͬͯ͑ͨͷॳͩͬͨ • ͬͺΓϓϩάϥϛϯάָ͍͠ • ࣗͷʹཱͭͱͬͱָ͍͠ •
୭͔ʹͬͯ͑Δͱߋʹָ͍͠ • 5000ஹճ·ͰΓ4999ஹ9999ԯ9940ສճ • 41ԯ6666ສ6667ޙ