MCPcopy Create free account
hub / github.com/decoder-it/ADCSCoercePotato / GenRandomByte

Function GenRandomByte

IStorageTrigger.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 return 0;
33}
34void GenRandomByte(byte* s, int len)
35{
36
37 int k;
38 srand(time(NULL));
39 for (int i = 0; i < len; ++i) {
40 k = 1 + (rand() % static_cast<int>(255 - 1 + 1));
41 s[i] = k;
42 //printf("k=%d\n", k);
43 }
44
45
46}
47HRESULT IStorageTrigger::MarshalInterface(IStream* pStm, const IID& riid, void* pv, DWORD dwDestContext, void* pvDestContext, DWORD mshlflags) {
48 short sec_len = 8;
49 char remote_ip_mb[16];

Callers 1

MarshalInterfaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected