Files
AVA2/src/eter_base/Random.h
T
shenleiandClaude Opus 5.5 9077aa389a AVA2 client Windows parity passes (gr2 BitKnit2/64-bit, GamePhase handlers, python modules)
- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves
- net: remaining GamePhase handlers, generated GC packet table
- python: event/chat/chr/minimap/guild/quest/messenger/shop-search and
  other native modules ported against the AVA2 Windows client
- render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain
  without baked shade; cape/NPC equipment attachment
- tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md

Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame,
camera bindings, main.cpp fake-content removal) is still in progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 10:43:01 +09:00

14 lines
464 B
C++

#pragma once
// EterBase random: the Park-Miller generator behind random_range / app.GetRandom.
// Provenance: AVA2 EterBase/Random.cpp (32-bit long arithmetic kept with fixed-width types).
#include <cstdint>
namespace eter {
void srandom(uint32_t seed);
// Uniform on [1, 2^31 - 2].
uint32_t random();
float frandom(float flLow, float flHigh);
// from <= to: random() % (to - from + 1) + from.
int32_t random_range(int32_t from, int32_t to);
} // namespace eter