Seed is a JavaScript interpreter and a library of the GNOME project.
Questions tagged [seed]
632 questions
11
votes
4 answers
boost::random generate the same number every time
main .cpp
#include "stdafx.h"
#include "random_generator.h"
int
main ( int argc, char *argv[] )
{
cout.setf(ios::fixed);
base_generator_type base_generator;
int max = pow(10, 2);
…

mono
- 1,651
- 3
- 13
- 7
10
votes
2 answers
How to get proper public address from mnemonic phrase for Solana?
I am trying to get proper public address for Solana wallet using solana-web3.js at my react-native test project
import { Keypair} from '@solana/web3.js';
import * as bip39 from 'bip39';
import * as bip32 from 'bip32';
const derivePath =…

Mikenso
- 121
- 2
- 6
10
votes
4 answers
Java Random, little change in seed causes only little change in output
While making a map generator in Java I found a rather unnerving problem with their random number generator, to specify, when two RNGs have very similar seeds (differing in small integers) their first output value will become very similar!
Example…

Szoltomi
- 193
- 1
- 10
10
votes
1 answer
Would you recommend JavaScript for GNOME desktop apps?
With the arrival of the new GNOME Developer Center I stumbled across JavaScript bindings for the gobject libraries. Now I would love to read a comment from an expert if he (or she) would recommend / consider using those for a desktop application.…

f4lco
- 3,728
- 5
- 28
- 53
10
votes
4 answers
Setting seed boost::random
I would like to reset random sequences by using different seed numbers. When running this test code:
boost::mt19937 gener(1);
boost::normal_distribution<> normal(0,1);
boost::variate_generator >…

anton skvorts
- 441
- 1
- 4
- 11
10
votes
1 answer
How to close connection immediately after finishing download with aria2c?
Occasionally, I will leave an aria2c connection seeding after it has finished downloading, and then hop on a network which doesn't like me seeding.
I'd like to immediately close the connection after I finishing downloading, preventing me from ever…

hbd
- 674
- 7
- 21
10
votes
10 answers
XCode 8 GM Seed - Error while uploading to TestFlight
While Uploading the .ipa file (Generated using Xcode GM Seed) into TestFlight, I am receiving the following error.
ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/Application.app/Assets.car' can't be read. Try rebuilding the
app…

sel
- 101
- 1
- 3
10
votes
2 answers
Undo previously seeded data in Rails
I have seeded a row of data to my table by editing db/seed.rb file and executing rake db:seed command. Unknowingly, I put some wrong information in to that row. So I want to remove the previously added row of data. Is there any rake command for the…

Rajesh Omanakuttan
- 6,788
- 7
- 47
- 85
9
votes
4 answers
Reinventing The Wheel: Random Number Generator
So I'm new to C++ and am trying to learn some things. As such I am trying to make a Random Number Generator (RNG or PRNG if you will). I have basic knowledge of RNGs, like you have to start with a seed and then send the seed through the algorithm.…

Cistoran
- 1,587
- 15
- 36
- 54
9
votes
0 answers
Provide a random seed to ASLR on Linux
There is an option to enable or disable stack randomization but is there way to supply the ASLR algorithm with a seed to make it deterministic?
EDIT: The context is as follows: a memory bug I have pops up one out of ten executions under ASLR and…

Alex Zhi
- 183
- 5
9
votes
2 answers
Is there a good way to share the seed of random between modules (in python)?
I have a project with different main files (for different simulations).
When I run one of the mainfiles, it should set a seed to random (and numpy.random), and all the modules in the project should use that seed.
I don't find a good way to do this.…

rgalhama
- 314
- 1
- 4
- 14
9
votes
2 answers
R: bizarre behavior of set.seed()
Odd thing happens when in R when I do set.seed(0) and set.seed(1);
set.seed(0)
sample(1:100,size=10,replace=TRUE)
#### [1] 90 27 38 58 91 21 90 95 67 63
set.seed(1)
sample(1:100,size=10,replace=TRUE)
#### [1] 27 38 58 91 21 90 95 67 63 7
When…

bigO6377
- 1,256
- 3
- 14
- 28
9
votes
4 answers
Predict the Seed of Javascript's Math.random
Okay, so I'm doing some research on how random numbers are generated with the Math.random method. So far I learned that it starts with a "random" seed, and that seed is plugged into some complex equation to create a random number. If the seed is…

43.52.4D.
- 950
- 6
- 14
- 28
8
votes
3 answers
Nest: Cannot create a new connection named "default", because connection with such name already exist and i t now has an active connection session
I am trying to create a seeder file in nestjs, the problem is when I run the project using start:dev, somehow nestjs also start seed.ts file with main.ts file. How can I make nestjs not start seed file when I run the project either on prod/dev but…

Saram Zafar Iqbal
- 91
- 1
- 3
8
votes
1 answer
How to use Seed data with Paperclip + S3
I'm trying to seed my database with member profiles and also member profile pictures with S3 and paperclip but it doesn't seem to be working.
I can create/edit existing members within the application to add pictures with paperclip + S3 and it works…

Msencenb
- 5,675
- 11
- 52
- 84