Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,202 for rand (0.02 sec)

  1. src/test/java/jcifs/tests/BaseCIFSTest.java

    1.  
    2. /**
    3. * @author mbechler
    4. *
    5. */
    6. @SuppressWarnings ( "javadoc" )
    7. public abstract class BaseCIFSTest {
    8.  
    9. private Map<String, String> properties;
    10. private CIFSContext context;
    11. private Random rand = new Random();
    12. private String name;
    13.  
    14.  
    15. protected BaseCIFSTest ( String name, Map<String, String> properties ) {
    16. this.name = name;
    17. this.properties = properties;
    18. }
    19.  
    20.  
    21. /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

    1. Random rand = new Random(1);
    2. for (int bits = 10; bits < 63; bits++) {
    3. for (int i = 0; i < 100; i++) {
    4. long p = BigInteger.probablePrime(bits, rand).longValue();
    5. assertTrue(LongMath.isPrime(p));
    6. }
    7. }
    8. }
    9.  
    10. @GwtIncompatible // isPrime is GWT-incompatible
    11. public void testIsPrimeOnRandomComposites() {
    12. Random rand = new Random(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  3. cmd/erasure_test.go

    1. //
    2. // You should have received a copy of the GNU Affero General Public License
    3. // along with this program. If not, see <http://www.gnu.org/licenses/>.
    4.  
    5. package cmd
    6.  
    7. import (
    8. "bytes"
    9. "context"
    10. "crypto/rand"
    11. "io"
    12. "testing"
    13. )
    14.  
    15. var erasureEncodeDecodeTests = []struct {
    16. dataBlocks, parityBlocks int
    17. missingData, missingParity int
    18. reconstructParity bool
    19. shouldFail bool
    20. }{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. cmd/site-replication-utils.go

    1. peerResyncMap: make(map[string]resyncState),
    2. }
    3. go s.save(ctx)
    4. go s.init(ctx)
    5. return &s
    6. }
    7.  
    8. // init site resync metrics
    9. func (sm *siteResyncMetrics) init(ctx context.Context) {
    10. r := rand.New(rand.NewSource(time.Now().UnixNano()))
    11. // Run the site resync metrics load in a loop
    12. for {
    13. if err := sm.load(ctx, newObjectLayerFn()); err == nil {
    14. <-ctx.Done()
    15. return
    16. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. docs_src/security/tutorial005_an_py310.py

    1. SecurityScopes,
    2. )
    3. from jwt.exceptions import InvalidTokenError
    4. from passlib.context import CryptContext
    5. from pydantic import BaseModel, ValidationError
    6.  
    7. # to get a string like this run:
    8. # openssl rand -hex 32
    9. SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7"
    10. ALGORITHM = "HS256"
    11. ACCESS_TOKEN_EXPIRE_MINUTES = 30
    12.  
    13.  
    14. fake_users_db = {
    15. "johndoe": {
    16. "username": "johndoe",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. docs_src/security/tutorial005_an_py39.py

    1. SecurityScopes,
    2. )
    3. from jwt.exceptions import InvalidTokenError
    4. from passlib.context import CryptContext
    5. from pydantic import BaseModel, ValidationError
    6.  
    7. # to get a string like this run:
    8. # openssl rand -hex 32
    9. SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7"
    10. ALGORITHM = "HS256"
    11. ACCESS_TOKEN_EXPIRE_MINUTES = 30
    12.  
    13.  
    14. fake_users_db = {
    15. "johndoe": {
    16. "username": "johndoe",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeConnection.java

    1. // Disconnect and try again.
    2. if ( log.isDebugEnabled() ) {
    3. log.debug("Retrying (" + retries + ") resolveDfs: " + request);
    4. }
    5. log.debug("Disconnecting tree on DFS retry");
    6. disconnect(true);
    7. try {
    8. Thread.sleep(500 + RAND.nextInt(5000));
    9. }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  8. internal/event/targetlist_test.go

    1. //
    2. // You should have received a copy of the GNU Affero General Public License
    3. // along with this program. If not, see <http://www.gnu.org/licenses/>.
    4.  
    5. package event
    6.  
    7. import (
    8. "context"
    9. "crypto/rand"
    10. "errors"
    11. "reflect"
    12. "testing"
    13. "time"
    14.  
    15. "github.com/minio/minio/internal/store"
    16. )
    17.  
    18. type ExampleTarget struct {
    19. id TargetID
    20. sendErr bool
    21. closeErr bool
    22. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. cmd/global-heal.go

    1. //
    2. // You should have received a copy of the GNU Affero General Public License
    3. // along with this program. If not, see <http://www.gnu.org/licenses/>.
    4.  
    5. package cmd
    6.  
    7. import (
    8. "context"
    9. "errors"
    10. "fmt"
    11. "math/rand"
    12. "runtime"
    13. "sort"
    14. "time"
    15.  
    16. "github.com/dustin/go-humanize"
    17. "github.com/minio/madmin-go/v3"
    18. "github.com/minio/minio/internal/bucket/lifecycle"
    19. objectlock "github.com/minio/minio/internal/bucket/object/lock"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. internal/config/crypto.go

    1. //
    2. // You should have received a copy of the GNU Affero General Public License
    3. // along with this program. If not, see <http://www.gnu.org/licenses/>.
    4.  
    5. package config
    6.  
    7. import (
    8. "bytes"
    9. "context"
    10. "crypto/rand"
    11. "encoding/binary"
    12. "errors"
    13. "fmt"
    14. "io"
    15.  
    16. jsoniter "github.com/json-iterator/go"
    17. "github.com/minio/minio/internal/fips"
    18. "github.com/minio/minio/internal/kms"
    19. "github.com/secure-io/sio-go"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top