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
July 15, 2017
Programming
1.1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
半年間で60万回叩かれたAPIを公開した話 / rng-api
odanado
July 15, 2017
More Decks by odanado
See All by odanado
Vitest Browser Mode への期待 / Vitest Browser Mode
odanado
3
5.6k
@nestjs/bull の活用について
odanado
0
1.6k
クラウド KMS の活用 / TOKYO BLOCKCHAIN TECH MEETUP 2022
odanado
0
1.3k
Vue.observable で状態管理 / vue-observable-state-management
odanado
4
2.1k
nuxtjs-axios-error-handling
odanado
0
410
ブロックチェーンアプリのトランザクションに対するデータ分析 / PyCon-JP-2019
odanado
0
460
スマートコントラクトに対する既知の攻撃とその対策 / bc.tokyo-21
odanado
0
290
最近のweb3.js事情 / bc.tokyo-19
odanado
2
570
YAPC::Tokyo 2019に スタッフ参加してみて / kichijojipm-18
odanado
1
2.4k
Other Decks in Programming
See All in Programming
React本体のコードリーディング
high_g_engineer
1
150
How I Won Prize Money at a Hackathon Using Codex and Symphony Alpha
yasei_no_otoko
0
110
仕様駆動開発の消費期限
watany
20
8.8k
VibeCodingからAgenticWorkflowへ
starfish719
0
690
Japan Community Day at Kubecon + CloudNativeCon Japan 2026: Learning Container Privilege Control by Building My Own Low-Level Container Runtime
ternbusty
1
160
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
710
リアルな遅延を測る仕様
kota_yata
1
120
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
810
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
110
FastAPI の並行処理モデルを完全に理解する
hoto17296
1
220
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
110
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
440
Featured
See All Featured
Done Done
chrislema
186
16k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
490
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Facilitating Awesome Meetings
lara
57
7.1k
WCS-LA-2024
lcolladotor
0
800
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
480
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
440
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
470
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ޙ