100 ISource* randomSource;
101
102 IShell* shell = reinterpret_cast<AEEApplet*>(GETAPPINSTANCE())->m_pIShell;
103 ISHELL_CreateInstance(shell, AEECLSID_RANDOM, reinterpret_cast<void**>(&randomSource));
104 ISOURCE_Read(randomSource, reinterpret_cast<char*>(&bits), 4);
105 ISOURCE_Release(randomSource);
102 PlatformRefPtr<ISource> randomSource = createRefPtrInstance<ISource>(AEECLSID_RANDOM);
103 ISOURCE_Read(randomSource.get(), reinterpret_cast<char*>(&bits), 4);