Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    172

    realloc(NULL... has caused me problems before so...

    realloc(NULL... has caused me problems before so now I just assume it is unsafe, as for luaL_newstate I didn't even know it existed
  2. Replies
    11
    Views
    172

    It's using that logic cause I like to be...

    It's using that logic cause I like to be cautious, I tend to reuse functions like that so I just make it so any errors will be passed back to the calling function making it easier to diagnose where...
  3. Replies
    11
    Views
    172

    After hunting around for info on how to catch and...

    After hunting around for info on how to catch and report lua errors I made this change:


    if ( luaL_loadfile(L, "gasp.lua") || lua_pcall(L, 0, 0, 0) )
    printf("Failed:\n%s\n",...
  4. Replies
    11
    Views
    172

    Getting this error now: ./gasp.elf: error...

    Getting this error now:


    ./gasp.elf: error while loading shared libraries: libgasp-lua.so: cannot open shared object file: No such file or directory

    Gonna make myself a cuppa before I go...
  5. Replies
    11
    Views
    172

    I mean when it should be loading the moon...

    I mean when it should be loading the moon libraries it just shuts down execution and passes back to gasp like nothing happend, since gasp shuts down after calling the file I've not got any...
  6. Replies
    11
    Views
    172

    Found out part of the reason, apparently lua is...

    Found out part of the reason, apparently lua is not loading libraries as the docs describe, hafta look around for info on this phenomenon, and no has nothing to do with paths or missing loadlib...
  7. Replies
    11
    Views
    172

    Issue trying to load lua libraries

    Gotta go to work so won't be able to try anything until I get home nor will I respond often (or at all as the case may be). I returned to my cheat project and started again (with a new name after...
  8. Replies
    3
    Views
    112

    Never mind, popped the header in quotes and it...

    Never mind, popped the header in quotes and it shut up about that, on the other hand I have to implement some bits of the library manually it seems, ah well at least I don't have to implement the...
  9. Replies
    3
    Views
    112

    Compiler failing to find includes

    Tried including the directory it's in (/usr/include) yet still not found, any ideas?


    clang -shared -fPIC -fpic -I /usr/include -I Cpw/library -I Cpw/library/src/include -Wall...
  10. Replies
    72
    Views
    843

    Well here's the results, just 2 failures out of...

    Well here's the results, just 2 failures out of the lot, I can live with that for now, I'll switch back to my other project for a while and fix an allocation issue I just thought of in it (related to...
  11. Replies
    72
    Views
    843

    I, erm, think I fixed the time based generator to...

    I, erm, think I fixed the time based generator to be shall we say WAY more secure than before, I was experimenting hoping to get a few more passed and on my current attempt (dieharder is still...
  12. Replies
    72
    Views
    843

    Nah its not that, I can read scripts easily...

    Nah its not that, I can read scripts easily enough since they're in nice simple lines but math symbols go all over the place and there are some I'm not even familiar with, I only got a B in my GCSEs...
  13. Replies
    72
    Views
    843

    Well as you'll note I used a macro on this last...

    Well as you'll note I used a macro on this last version so I can always maintain only slightly different functions and the developer using them can simply use a macro to decide if they want the...
  14. Replies
    72
    Views
    843

    Isn't the point of a random number generator...

    Isn't the point of a random number generator supposed to be ooh I dunno not fixed?
  15. Replies
    72
    Views
    843

    Well just finished running the version that was...

    Well just finished running the version that was using NULL on the seed under dieharder (results attached), while not perfect it does seem to pass roughly 50% of the tests which is good enough for...
  16. Replies
    72
    Views
    843

    Thanks, I tried reading through the 1st one but...

    Thanks, I tried reading through the 1st one but used so many math symbols that it would take too long for me to understand it, I do wish they had thought to include simple pseudo code as well,...
  17. Replies
    72
    Views
    843

    Noted, I will keep that in mind for future...

    Noted, I will keep that in mind for future reference

    Comparison of C/POSIX standard library implementations for Linux
    Since musl is under MIT License also it is not an issue to include it's code...
  18. Replies
    72
    Views
    843

    Yeah I noticed :), incidentally before that I had...

    Yeah I noticed :), incidentally before that I had accidentally tried with a hard-coded value that I just randomly hit some keys on my numpad for and I didn't notice any tears on that so I think for...
  19. Replies
    72
    Views
    843

    Not sticking around tonight but here's the...

    Not sticking around tonight but here's the 256x256 version of what I get without a seed plus the original 1024x1024 pic
    pic.ppm - Google Drive
  20. Replies
    72
    Views
    843

    Miss as in if incorrectly detected causes the...

    Miss as in if incorrectly detected causes the process to crash
  21. Replies
    72
    Views
    843

    Yeah I removed that for now, better a slow but...

    Yeah I removed that for now, better a slow but working version than a fast but hit and miss version, I'll try that when I can look at the macros and instructions properly on monday
  22. Replies
    72
    Views
    843

    nah my cpu is little endian, I think it was an...

    nah my cpu is little endian, I think it was an AMD FX Quad Core, old but still doing the job, thinking about investing in an AMD Zen bundle after replacing my washing machine which is surely on its...
  23. Replies
    72
    Views
    843

    thank you that worked :) Used this: uint...

    thank you that worked :)
    Used this:


    uint mcc___rnd( uint *seed ) {
    /* Initial random value */
    uint _seed;
    char tseed[10] = "946853721";
    struct timespec ts;...
  24. Replies
    72
    Views
    843

    Thanks, finally got round to trying it as I was...

    Thanks, finally got round to trying it as I was tired of trying to pass the failed/weak results of some of the tests, was taking too long so I tried this which is faster but eog reports an incorrect...
  25. Replies
    72
    Views
    843

    Well now I'm trying this: unsigned...

    Well now I'm trying this:


    unsigned musl_temper(unsigned x)
    {
    x ^= x>>11;
    x ^= x<<7 & 0x9D2C5680;
    x ^= x<<15 & 0xEFC60000;
    x ^= x>>18;
    return x;
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4