Implementation
The GNU C Library, known as glibc, is a free and open source version of the C standard library. If you've used open source software, then you've probably used a program built using this library.
Among the many other tools provided by this library is a
Linear Congruential Generator. This generator uses bit masking to return only the last 30 bits of the Seed.
This generator uses the following constants:
- M = 231
- a = 1103515245
- c = 12345
Test Results
SEED | Number indicates how many results could be obtained before the generator fell into a loop. |
1138 | - | PASS |
65535 | - | PASS |
8675309 | - | PASS |
16777216 | - | PASS |
123456789 | - | PASS |
|
This generator produced an ideal distribution of outcomes. |
SEED | Minimum of 6,000 darts placed needed to pass. |
1138 | 6945 | PASS |
65535 | 6943 | PASS |
8675309 | 6984 | PASS |
16777216 | 7006 | PASS |
123456789 | 6989 | PASS |
SEED | 70% or higher required to pass. |
1138 | 101% | PASS |
65535 | 101% | PASS |
8675309 | 101% | PASS |
16777216 | 101% | PASS |
123456789 | 101% | PASS |
|
An ideal result for this test. |
740901869 | 237426875 | 1065031849 | 103100730 | 47856182 | 314954062 | 517784431 | 790907736 | 397577210 | 672693932 | 44635709 | 959734243 | 119030185 | 1066670490 | 445046542 | 64553814 | 787020181 | 731305607 | 793375204 | 1020556926 |
625420791 | 774593494 | 330238549 | 879494579 | 840776076 | 637719543 | 675228904 | 447966769 | 43484405 | 834441021 | 11178518 | 343850504 | 91803124 | 94057250 | 1052375139 | 1051376285 | 103760980 | 957838743 | 468820095 | 356605414 |
690259503 | 315692363 | 622040611 | 372583009 | 1004492826 | 146010986 | 471934175 | 88555110 | 14047230 | 922038305 | 299066281 | 656489194 | 957626461 | 151730353 | 880549500 | 904294878 | 892786448 | 530115758 | 971881888 | 25503460 |
816525299 | 57932201 | 852648112 | 256281811 | 652285255 | 320442744 | 819348336 | 643999163 | 601574174 | 518207828 | 1039242681 | 38345444 | 297397415 | 208526638 | 170028208 | 320554448 | 177454369 | 325080459 | 411821756 | 300140771 |
836267370 | 788093557 | 1029488761 | 423701646 | 757179801 | 1011831336 | 194984407 | 263073679 | 3401862 | 630511869 | 1048279400 | 150944167 | 453388779 | 118137513 | 946552715 | 560569947 | 247840060 | 702109643 | 298688533 | 699907952 |
914615074 | 35593361 | 204512740 | 709729373 | 742274153 | 325492960 | 518986734 | 1059985607 | 611438788 | 6557204 | 512733414 | 313321211 | 213499722 | 119879934 | 423229563 | 1063265054 | 778520927 | 816297762 | 813830641 | 858551774 |
414910193 | 12452873 | 511330941 | 639323933 | 750689622 | 1050378242 | 753812218 | 407730885 | 977304367 | 657005168 | 692985065 | 1031874111 | 501002533 | 736573596 | 13461805 | 867777543 | 86447081 | 208905052 | 76597723 | 751082740 |
658673505 | 974950799 | 350055689 | 588400368 | 15616360 | 262191914 | 351961691 | 982196614 | 590193763 | 487468345 | 852821552 | 534077560 | 912949216 | 25511326 | 938541295 | 75462025 | 339595871 | 875535551 | 261301957 | 14062325 |
454011801 | 724746323 | 628963178 | 913489704 | 585599846 | 836978431 | 1061409020 | 418867023 | 648197768 | 819133287 | 70214917 | 48065982 | 270839840 | 255310116 | 867173197 | 403735455 | 542998339 | 653037580 | 803576899 | 298774688 |
137836742 | 655334662 | 286750928 | 408522273 | 41481702 | 1066809509 | 241600458 | 917106076 | 192863912 | 817130013 | 511602327 | 821869294 | 414428839 | 762780240 | 653766589 | 756606762 | 915739612 | 1035661574 | 793271394 | 470639044 |
897501749 | 1056364951 | 126598767 | 673441329 | 384994331 | 799197725 | 179352428 | 451790900 | 72138329 | 179829792 | 90854156 | 512146817 | 276106425 | 623185871 | 413958832 | 49705141 | 481048259 | 997454395 | 943616344 | 955859587 |
652307320 | 140992159 | 101094972 | 68492785 | 127691317 | 64800599 | 805546848 | 347318328 | 733163028 | 572833611 | 761213766 | 412941344 | 502418178 | 148329094 | 1023553965 | 490319586 | 950604900 | 715783018 | 163977810 | 414402085 |
369336843 | 111190916 | 62381826 | 999622972 | 657361848 | 970331270 | 499389002 | 158948292 | 637235205 | 76738419 | 11798807 | 110335118 | 995022448 | 788629784 | 874805820 | 838455863 | 212057460 | 128445913 | 547413521 | 737497158 |
159811176 | 225661926 | 257657756 | 219181455 | 1022014263 | 627101702 | 661891346 | 349678346 | 356910574 | 344253986 | 107935469 | 419103060 | 85295934 | 985055912 | 606023295 | 169779581 | 220218376 | 961115991 | 692173011 | 850491100 |
201030612 | 435078841 | 629391453 | 919444353 | 1052716020 | 715370703 | 225960113 | 607497878 | 395296047 | 36746573 | 229177539 | 1033141586 | 360273715 | 765060425 | 640352755 | 595003287 | 637653305 | 455307734 | 171763610 | 197241370 |
862984307 | 76431492 | 361517885 | 391961531 | 402864536 | 617798883 | 460762879 | 571759946 | 448446387 | 219846666 | 387827418 | 1034182005 | 293846971 | 151584243 | 414061134 | 246702366 | 992415576 | 195504732 | 723343831 | 389270891 |
574007464 | 606991081 | 608445757 | 839946995 | 862186966 | 938476846 | 1058600190 | 321278476 | 527427585 | 505869835 | 479120535 | 779958275 | 530026528 | 174995159 | 757879732 | 649220564 | 11935895 | 396470586 | 457754013 | 763923179 |
310507815 | 535680190 | 678553244 | 454463471 | 421453513 | 541591883 | 503103052 | 833377220 | 251922999 | 637125501 | 687690893 | 717114413 | 1021597653 | 65531458 | 526815865 | 317280062 | 891787353 | 997040460 | 539280252 | 42390289 |
959028671 | 585252365 | 641171612 | 387768121 | 791165154 | 243056754 | 541183885 | 247927151 | 612657747 | 113021122 | 785008476 | 334821226 | 854402343 | 243490290 | 389029393 | 127512213 | 801553587 | 67054123 | 498149968 | 425243451 |
956877336 | 454264530 | 27105308 | 921633831 | 290486665 | 386565524 | 880620150 | 936291616 | 1062879 | 777218274 | 1007867166 | 587641896 | 647096264 | 572772511 | 523809125 | 978954018 | 239323704 | 555671643 | 365663787 | 719675664 |